[Haskell-cafe] (a -> [b]) -> [a -> b] ?

Matthew Brecknell haskell at brecknell.org
Mon Dec 4 14:59:56 EST 2006


Joachim Breitner:
> here I use that map (\n -> l !!n ) [1..] == l. I hope that is
> valid

map (\n -> l !! n) [1..] is more like (tail l). Did you mean to use
[0..]?



More information about the Haskell-Cafe mailing list