def listify(generator_func):
def list_func(*args, **kwargs):<EOL><INDENT>return degenerate(generator_func(*args, **kwargs))<EOL><DEDENT>return list_func<EOL>
Converts generator functions into list returning functions.

@listify
def test():
    yield 1
test()
# => [1]