Given: a list, for example [1,2,"hello","world"]
Need to: create list of lists with all the prefixes,
for example the output will be: [[], [1], [1, 2], [1, 2, "hello"], [1, 2, "hello", "world"]]
Problem: the function body must contain only single line code.
I don't have any problem to do this with regular way (loops, etc..) but cant figure out how to do only with single line.