12 Nov
2009
12 Nov
'09
3:09 a.m.
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.