j
k
j a
j l
intermediate thunk has already been built. You need a separate "strict foldl" function, usually called foldl', which was unaccountably omitted from the prelude.
There is one in Data.List.
Back to the thread
Back to the list