Variadic +, -, *, /, % folded over the binary C primitives.
+Variadic addition. Returns the sum of all arguments.
Parameters:
NUMBER — Zero or more numbersReturns: NUMBER — Sum of all arguments, or 0 with no arguments
Examples:
(+ 1 2 3) => 6
(+) => 0*Variadic multiplication. Returns the product of all arguments.
Parameters:
NUMBER — Zero or more numbersReturns: NUMBER — Product of all arguments, or 1 with no arguments
Examples:
(* 2 3 4) => 24
(*) => 1/Variadic integer division. Folds left.
Parameters:
NUMBER — One or more numbersReturns: NUMBER — Quotient from left fold
Examples:
(/ 100 5 2) => 10-Variadic subtraction. With one argument, negates. With multiple, folds left.
Parameters:
NUMBER — One or more numbersReturns: NUMBER — Difference, or negation with one argument
Examples:
(- 10 3 2) => 5
(- 5) => -5&Bitwise AND.
Parameters:
INT — First operandINT — Second operandReturns: INT — Bitwise AND
|Bitwise OR.
Parameters:
INT — First operandINT — Second operandReturns: INT — Bitwise OR
^Bitwise XOR.
Parameters:
INT — First operandINT — Second operandReturns: INT — Bitwise XOR
<<Left shift.
Parameters:
INT — Value to shiftINT — Number of bitsReturns: INT — Shifted value
>>Arithmetic right shift.
Parameters:
INT — Value to shiftINT — Number of bitsReturns: INT — Shifted value
<Test numeric less-than.
Parameters:
INT — First numberINT — Second numberReturns: BOOL — t if a < b
~Bitwise NOT.
Parameters:
INT — IntegerReturns: INT — Bitwise complement