Jump to content

Overloaded operators: Difference between revisions

m
(→‎{{header|Raku}}: Add a Raku example)
Line 158:
Borrowed from the [[Nimber_arithmetic#Raku|Nimber arithmetic]] task:
 
New operators, defined in place. Arity is two (almost all infix operators are
take two arguments), precedence is set equivalent to similar existing operators,
default (right) associativity. The second, ⊗, actually uses itself to define
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.