(value, function)
return retVal
Applies function recursively through list-like structures

    >>> applyFunctionRecursively([1, 2, [3, 4, [19]], -9], lambda _: _ > 0)
    [True, True, [True, True, [True]], False]
Applies function recursively through list-like structures
Applies function recursively through list - like structures
def applyFunctionRecursively(value, function):
    """
    Applies function recursively through list-like structures

    >>> applyFunctionRecursively([1, 2, [3, 4, [19]], -9], lambda _: _ > 0)
    [True, True, [True, True, [True]], False]
    """

    if isListLike(value):
        retVal = [applyFunctionRecursively(_, function) for _ in value]
    else:
        retVal = function(value)

    return retVal
def applyFunctionRecursively ( value , function ) : if isListLike ( value ) : retVal = [ applyFunctionRecursively ( _ , function ) for _ in value ] else : retVal = function ( value ) return retVal