[Haskell-cafe] Re: iterative algorithms: how to do it in Haskell?

Henk-Jan van Tuyl hjgtuyl at chello.nl
Sat Aug 19 05:14:32 EDT 2006


On Sat, 19 Aug 2006 10:28:33 +0200, Gene A <yumagene at gmail.com> wrote:

> *Iteration> fromtoby 1 12 2 (flip (^) 3)  -- cubing of the base list  
> above..

An easier way to write this:
fromtoby 1 12 2 (^3)

[...]
> *Iteration> fromtoby 12 42 3  (flip (**) 0.3333333333)

fromtoby 12 42 3  (**0.3333333333)

>
> Greetings from the Yuma Desert,
> gene
> _______________________________________________

Greetings from Holland,
Henk-Jan van Tuyl

-- 
http://Van.Tuyl.eu/
--

Using Opera's revolutionary e-mail client:
https://secure.bmtmicro.com/opera/buy-opera.html?AID=789433



More information about the Haskell-Cafe mailing list