Difference between revisions of "La ce serveste apostroful invers (`) ?"
Jump to navigation
Jump to search
BrettGiles (talk | contribs) m (Category) |
m |
||
Line 6: | Line 6: | ||
Functia se poate folosi acum si ca un operator: 1 `g` 2 |
Functia se poate folosi acum si ca un operator: 1 `g` 2 |
||
... ceea ce e echivalent cu: g 1 2 |
... ceea ce e echivalent cu: g 1 2 |
||
+ | |||
+ | [http://www.haskell.org/haskellwiki/Ro/Haskell <= Inapoi la pagina principala Ro/Haskell ] |
Revision as of 19:44, 31 January 2007
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