« Return to Thread: Cont, ContT and IO()

Re[2]: Cont, ContT and IO()

by Bulat Ziganshin-2 :: Rate this Message:

Reply to Author | View in Thread

Hello Matthias,

Saturday, July 4, 2009, 6:39:30 PM, you wrote:

> Or use a fold:

>> process' = foldl op True files
>> op True file = doit file
>> op False _ = False

foldM, probably, otherwise you will need to execute all actions before
running fold

--
Best regards,
 Bulat                            mailto:Bulat.Ziganshin@...

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe

 « Return to Thread: Cont, ContT and IO()