[Haskell-cafe] Haskell vs OCaml

Glynn Clements glynn at gclements.plus.com
Sun Dec 25 07:37:59 EST 2005


Branimir Maksimovic wrote:

> >Could you give an example of a loop you find awkward in Haskell?
> 
> Well I want simple loop for(int i =0;i<10;++i)doSomething(i);

	mapM_ doSomething [0..9]

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the Haskell-Cafe mailing list