Re: [Haskell-cafe] Newbie syntax question

2005-09-19 Thread André Vargas Abs da Cruz
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

[Haskell-cafe] Newbie syntax question

2005-09-16 Thread André Vargas Abs da Cruz
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:

Re: [Haskell-cafe] Newbie syntax question

2005-09-16 Thread André Vargas Abs da Cruz
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

[Haskell-cafe] Newbie question

2005-08-12 Thread André Vargas Abs da Cruz
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

Re: [Haskell-cafe] Newbie question

2005-08-12 Thread André Vargas Abs da Cruz
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