Hi,
Just looking at the definitions for foldr and foldl I see
that foldl is (apparently) tail recursive while foldr is not.
Why?
Is it because foldl defers calling itself until last whereas
foldr evaluates itself as it runs?
What, strictly speaking, is the definition of ”tail
recursive” as opposed to just “recursive”?
Cheers,
Mark Spezzano