
Usually, operator is function that takes two values and return a value, and used in infix form, since in haskell infix and prefix form is interchangable, so you can define operator as function taking two arguments.
1+2 3 (+) 1 2 3 map (+1) [1,2,3] [2,3,4] (+1) `map` [1,2,3] [2,3,4]
Hope you can understand my pool english ;-)
Best regards.
On Mon, Oct 10, 2011 at 8:08 PM, Costello, Roger L.
Hi Folks,
In a book that I am reading the author distinguishes between "operator" and "function."
Example: The "+" is an operator. The "map" is a function.
What's the difference between operator and function?
/Roger
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners