[Haskell-cafe] *GROUP HUG*

Ertugrul Soeylemez es at ertes.de
Thu Jun 2 19:56:30 CEST 2011


Ivan Tarasov <ivan.tarasov at gmail.com> wrote:

> myFoldr :: (a -> b -> b) -> b -> [a] -> b
> myFoldr f z xs = foldl' (\s x v -> s (x `f` v)) id xs $ z

That's not foldr.  It's a function similar to foldr in Haskell and equal
to foldr in a different language, which lacks bottom.


Greets,
Ertugrul


-- 
nightmare = unsafePerformIO (getWrongWife >>= sex)
http://ertes.de/





More information about the Haskell-Cafe mailing list