On Mon, Nov 28, 2011 at 23:55, Willem O <dub...@hotmail.com> wrote: > 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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe