Proposal: Add strict iterate'

Henning Thielemann schlepptop at henning-thielemann.de
Sun Aug 10 18:14:28 UTC 2014


Am 06.08.2014 um 19:46 schrieb Bas van Dijk:

> As suggested[1] by Takano Akio a few years ago iterate can be made
> strict by applying headStrict to its result:
>
> headStrict :: [a] -> [a]
> headStrict = foldr (\x y -> seq x (x : y)) []

Can this be achieved with some of the evaluation strategies from 
Control.Parallel.Strategies, too?



More information about the Libraries mailing list