I am trying to teach myself functional programming using Haskell.
I have hard time understanding currying and lambdas.
This is a function that generates a list of prfixes of a list (outputs a list of lists).
foldr (\element accumulator -> [] : map (element:) accumulator) [[]]
I am trying to rewrite it as a regular function without lambda to help me understand how lambdas work. How would I do it? I am stuck. Would I need a helper function? Thank you.