Category talk:Wren-i64: Difference between revisions

(→‎Source code (Wren): Replaced U64.digitSum with a more efficient version.)
 
(One intermediate revision by the same user not shown)
Line 28:
 
==Source code (Wren)==
<syntaxhighlight lang="ecmascriptwren">/* Module "i64.wren" */
 
import "./trait" for Comparable
Line 360:
copy() { I64.from(this) } // copies 'this' to a new I64 object
 
isOdd { this % I64.two =!= I64.onezero } // true if 'this' is odd
isEven { this % I64.two == I64.zero } // true if 'this' is even
isZero { this == I64.zero } // true if 'this' is zero
9,476

edits