Section of an infix operator

From HaskellWiki
Revision as of 13:12, 31 May 2007 by Lemming (talk | contribs) (description of the concept)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

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