Category talk:Wren-long: Difference between revisions

Content added Content deleted
(→‎Source code: Added ULong.nextPrime method.)
m (→‎Source code: Fixed syntax highlighting.)
Line 30: Line 30:


===Source code===
===Source code===
<lang ecmascript>/* Module "long.wren" */
<syntaxhighlight lang=ecmascript>/* Module "long.wren" */


import "./trait" for Comparable
import "./trait" for Comparable
Line 919: Line 919:
static max(a) { a.reduce { |acc, x| (x > acc) ? x : acc } }
static max(a) { a.reduce { |acc, x| (x > acc) ? x : acc } }
static min(a) { a.reduce { |acc, x| (x < acc) ? x : acc } }
static min(a) { a.reduce { |acc, x| (x < acc) ? x : acc } }
}</lang>
}</syntaxhighlight>