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
Hi,
I have been using Haskell for a few weeks now and I can say that I
am totally impressed by how easy it is to program with it. I am now
doing some small exercises to get used to the language syntax and I have
a little (newbie) question:
Suppose I declare a function foo like:
will work, as will using a lambda expression
map (\x - foo x 5) may_list_of_lists_of_doubles
André Vargas Abs da Cruz wrote:
Hi,
I have been using Haskell for a few weeks now and I can say that I am
totally impressed by how easy it is to program with it. I am now doing
some small exercises
Hi everyone,
I think this is a totally newbie question as i am a complete novice
to Haskell. I am trying to write down a few programs using GHC in order
to get used with the language. I am having some problems with a piece of
code (that is supposed to return a list of lines from a text
Thank you all for your answers. I'll try to be more careful with lazy
evaluations while doing IO operations from now on.
Best regards
André
On Fri, Aug 12, 2005 at 02:54:03PM +0200, Lemmih wrote:
On 8/12/05, David Roundy [EMAIL PROTECTED] wrote:
On Fri, Aug 12, 2005 at 09:17:32AM