Built-in Operators

As operators in Alan are simply aliases for functions with a precedence value associated, all of the following operators have their underlying implementation defined above.

OperatorInfix/PrefixPrecedenceFunction
?infix0cond
==infix1eq
!=infix1neq
<infix1lt
<=infix1lte
>infix1gt
>=infix1gte
~infix1matches
+infix2concat
@infix1index
-prefix1negate
+infix2add
-infix2sub
*infix3mul
/infix3div
%infix3mod
**infix4pow
|infix2or
||infix2boolor
^infix2xor
!|infix2nor
!^infix2xnor
||infix2getOr
*infix3repeat
/infix3split
%infix3template
&infix3and
&&infix3and
!&infix3nand
!prefix4not
#prefix4length
`prefix4trim
:infix5pair
:infix6push