Category talk:Wren-rat: Difference between revisions

m
→‎Source code: Fixed syntax highlighting.
(→‎Source code: Removed type aliases and Rat.maxSafe methods which are no longer needed.)
m (→‎Source code: Fixed syntax highlighting.)
Line 1:
===Source code===
<langsyntaxhighlight lang=ecmascript>/* Module "rat.wren" */
 
import "./trait" for Comparable
Line 219:
static max(a) { a.reduce { |acc, x| (x > acc) ? x : acc } }
static min(a) { a.reduce { |acc, x| (x < acc) ? x : acc } }
}</langsyntaxhighlight>
9,482

edits