[Haskell-cafe] Newbie syntax question
André Vargas Abs da Cruz
andrev at ele.puc-rio.br
Mon Sep 19 11:20:28 EDT 2005
>
>
>1. map (flip foo 5) my_list_of_lists_of_doubles
>2. map (`foo` 5) my_list_of_lists_of_doubles
>3. map (\x->foo x 5) my_list_of_lists_of_doubles
>4. [foo x 5 | x <- my_list_of_lists_of_doubles]
>
> 5. map (foo `flip` 5) my_list_of_lists_of_doubles
Thank you all, for your answers. This nice discussion made even more
clear to me how powerful Haskell is.
Cheers,
André
More information about the Haskell-Cafe
mailing list