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.

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

Reply via email to