2 ms·
In Haskell you can make any (prefix) function infix (and vice versa). Some other languages (eg. Kotlin) support this as well. a + b -- '(+)' function use
by wereHamster 7y ago
In Haskell you can make any (prefix) function infix (and vice versa). Some other languages (eg. Kotlin) support this as well.
a + b -- '(+)' function used infix
(+) a b -- '(+)' function used prefix
min a b -- 'min' function used prefix
a `min` b -- 'min' function used infix