[Haskell-cafe] Haskell code for this example of flow control

Jared Updike jupdike at gmail.com
Wed Feb 1 16:50:27 EST 2006


I would use recrusion and the Prelude function until:

until (<=1) (/2) 1000

Cheers,
  Jared.

--
http://www.updike.org/~jared/
reverse ")-:"


More information about the Haskell-Cafe mailing list