Category talk:Wren-i64: Difference between revisions
→Source code (Wren): Bug fix
(→Source code (Wren): Replaced U64.digitSum with a more efficient version.) |
(→Source code (Wren): Bug fix) |
||
(One intermediate revision by the same user not shown) | |||
Line 28:
==Source code (Wren)==
<syntaxhighlight lang="
import "./trait" for Comparable
Line 360:
copy() { I64.from(this) } // copies 'this' to a new I64 object
isOdd { this % I64.two
isEven { this % I64.two == I64.zero } // true if 'this' is even
isZero { this == I64.zero } // true if 'this' is zero
|