
11 Nov
2009
11 Nov
'09
4:39 p.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.