3 ms·
> foldr is deciding where to map [] and : This is a way better explanation than the cryptic: " it (foldr) takes the second argument and the last item of
by toolslive 7y ago
> foldr is deciding where to map [] and :
This is a way better explanation than the cryptic:
" it (foldr) takes the second argument and the last item of
the list and applies the function, then it takes the
penultimate item from the end and the result, and so on.
See scanr for intermediate results. "