SplitScript reference / Numeric / add
Numeric.add
Operator
T.add(other: T) -> T where T: Numeric
Adds another value of the same numeric type.
This method is also the implementation of the + operator. Integer overflow wraps modulo the receiver's declared bit width.
Parameters
other: The value to add.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Add two values
let total = 20 + 22