[Haskell-cafe] Parse text difficulty
Ketil Malde
ketil+haskell at ii.uib.no
Thu Dec 9 10:21:31 EST 2004
Robert Dockins <robdockins at fastmail.fm> writes:
> > And I thought that most programmers used "zipWith", which has to be
> > prefix.
> [1..5] `zipWith (+)` [7..]
You don't have a computer at your end of the internet? :-)
Prelude> [1..5] `zipWith (+)` [7..]
<interactive>:1: parse error on input `('
Prelude> let zwp = zipWith (+) in [1..5] `zwp` [7..]
[8,10,12,14,16]
-kzm
--
If I haven't seen further, it is by standing in the footprints of giants
More information about the Haskell-Cafe
mailing list