[Haskell-cafe] Re: What's the deal with Clean?

Henning Thielemann lemming at henning-thielemann.de
Wed Nov 11 16:39:54 EST 2009


Stephen Tetley schrieb:
> Why speak nonsense when you can test it?
> 
> // ----------------------------------------------------------------------------
> 
> module nonsense
> 
> import StdEnv
> 
> nonsense = map ((^) 2)
> 
> Start = nonsense [1,2,3]
> 
> // ----------------------------------------------------------------------------
> 
> .... Running gives:
> 
> [2,4,8]

I think they wanted square numbers, not powers of two.



More information about the Haskell-Cafe mailing list