
29 Nov
2011
29 Nov
'11
2:13 a.m.
On Mon, Nov 28, 2011 at 23:55, Willem O
And I added this function: createPoint :: Int -> Point createPoint x = Point x When I loaded the file containing all this into ghci and executed 'Vector $ map createPoint [1..5]' the result was '(1, 2, 3, 4, 5)' (without the quotes).
Note that you do not need this function. You can just use the 'Point' constructor: map Point [1..5] Erik