[Haskell-cafe] Re: If wishes were horses...
lemming at henning-thielemann.de
Fri Mar 12 08:12:24 EST 2010
On Fri, 12 Mar 2010, Johannes Waldmann wrote:
> Ketil Malde <ketil <at> malde.org> writes:
>>> Prelude Data.List> :t foldl
>>> foldl :: (a -> b -> a) -> a -> [b] -> a
>> What should the type look like?
> Good question - and in my posting I tried to avoid the impression
> that I have an answer, because I really haven't.
foldl' :: Seq a => (a -> b -> a) -> a -> [b] -> a
I don't think that foldl' is really what we want, since we cannot control
the depth of strictness.
More information about the Haskell-Cafe