I wanted to test foldl vs foldr. From what I\'ve seen you should use foldl over foldr when ever you can due to tail reccursion optimization.
This makes sense. Howeve
Neither foldl nor foldr is tail optimized. It is only foldl'.
foldl
foldr
foldl'
But in your case using ++ with foldl' is not good idea because successive evaluation of ++ will cause traversing growing accumulator again and again.
++