def list_encoder_factory(type_callable):
    """
    Creates a function encoder that iterates on the elements of a list to apply the specified type_callable format.
    :param type_callable:  type to apply to data
    :return:  function that applies type_callable to a supplied list of data
    """

    def inner(data):
        return [type_callable(x) for x in data]

    return inner