def flatten(x):
    if isinstance(x[0], list):
        return list(toolz.concat(map(flatten, x)))
    else:
        return x
Search backward starting at the current line and moving up
dataset/ETHPy150Open blaze/blaze/blaze/partition.py/flatten--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/pyreadline/modes/emacs.py/EmacsMode.reverse_search_history