[Haskell-cafe] Newbie syntax question
ndmitchell at gmail.com
Fri Sep 16 15:54:59 EDT 2005
> >So I think
> >map ( (flip foo) 5 ) my_list_of_lists_of_doubles
> >will work, as will using a lambda expression
> >map (\x -> foo x 5) may_list_of_lists_of_doubles
I really like the `foo` syntax.
map (`foo` 5) my_list
also works, without an auxiliary function and without a lambda. In
reality this gets de-sugared to a flip, but i prefer this syntax.
`foo` uses foo as an infix operator.
More information about the Haskell-Cafe