
10 Aug
2014
10 Aug
'14
2:14 p.m.
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?