
18 Jan
2007
18 Jan
'07
9:06 a.m.
On 18/01/07, Chris Eidhof
That's exactly what I love about haskell: it saves me from a lot of unnecessary typing. After all, I'm a lazy programmer ;)
Lazy languages for lazy programmers 8)
On 18/1/2007, Johan Grönqvist
add x y = x + y map (add 2) [1..5]
Don't know if you know this, but infix operators like (+) are
functions too, and you can partially apply them using 'sections':
map (+2) [1..5]
It's only syntax, but this is one of the things I really like about Haskell.
--
Peter Berry