[Haskell-cafe] Optimization problem

Magnus Jonsson magnus at smartelectronix.com
Wed Sep 13 23:36:39 EDT 2006


On Thu, 14 Sep 2006 tpledger at ihug.co.nz wrote:

> Any approach, even sieving, will struggle with infinite
> lists, won't it?
>
>    (take 2 . snd . head . splitStreams) [(i, i) | i <-
> [0..]]

Yes, if you expect two messages but only one comes then you'll 
wait forever, true.

>
> Regards,
> Tom


More information about the Haskell-Cafe mailing list