[Haskell-beginners] Question about precedence

Marc Gorenstein marc.gorenstein at gmail.com
Mon Jul 1 18:14:04 CEST 2013


What sort of beast is ( / 8) in Haskell? It looks like it is a function
that divides a number by 8.

*Main> ( / 8 ) 4
0.5

*Main> let a = ( / 8 )
*Main> a 4
0.5

-- Yup that works.

Does ( / 8 )  turn into a function that takes an argument, so that the
"left" input to the /, becomes a right input to the function?
What  precedence rule  is being followed here?

Thanks,

Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130701/8e4e70bc/attachment.htm>


More information about the Beginners mailing list