parameters: (l)
return_statement: return [item for sublist in l_of_l for item in sublist]
docstring: Converts [1, 2, [3, 4], [5]] to [1, 2, 3, 4, 5].
docstring_summary: Converts [1, 2, [3, 4], [5]] to [1, 2, 3, 4, 5].
docstring_tokens: Converts [ 1 2 [ 3 4 ] [ 5 ]] to [ 1 2 3 4 5 ] .
function: def _Flatten(l):
    """Converts [1, 2, [3, 4], [5]] to [1, 2, 3, 4, 5]."""
    # [1, 2, [3, 4], [5]] -> [[1], [2], [3, 4], [5]]
    l_of_l = [x if _IsListValue(x) else [x] for x in l]
    # [[1], [2], [3, 4], [5]] -> [1, 2, 3, 4, 5]
    return [item for sublist in l_of_l for item in sublist]
function_tokens: def _Flatten ( l ) : # [1, 2, [3, 4], [5]] -> [[1], [2], [3, 4], [5]] l_of_l = [ x if _IsListValue ( x ) else [ x ] for x in l ] # [[1], [2], [3, 4], [5]] -> [1, 2, 3, 4, 5] return [ item for sublist in l_of_l for item in sublist ]