La ce serveste apostroful invers (`) ?

From HaskellWiki
Revision as of 23:13, 28 November 2006 by BrettGiles (talk | contribs) (Category)
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.

Transforma o functie cu doua argumente intr-un operator infixat.

 Exemplu: 
  g :: Int -> Int -> Int
  g a b = a+b 
 Functia se poate folosi acum si ca un operator: 1 `g` 2 
 ... ceea ce e echivalent cu: g 1 2