Personal tools

Section of an infix operator

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(description of the concept)
(Category:Glossary)
Line 5: Line 5:
 +
[[Category:Glossary]]
[[Category:Syntax]]
[[Category:Syntax]]

Revision as of 13:13, 31 May 2007

In Haskell there is a special syntax for partial application on infix operators.

  • (2^)
    is equivalent to
    (^) 2
  • (^2)
    is equivalent to
    flip (^) 2