I [believe that I] wrote foldl in terms of foldr:myFoldl :: (a -> b -> a) -> a -> [b] -> amyFoldl f base xs = foldr (flip f) base (reverse xs)Is this an idiomatic implementation?
FoldLeft in Terms of FoldRight
haskell;reinventing the wheel