Ivan Tarasov <[email protected]> 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/ _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
