Jump to content

Category talk:Wren-complex: Difference between revisions

m
→‎Source code: Fixed syntax highlighting.
(→‎Source code: Removed type aliases and changed Complex.tau to be consistent with Num.tau.)
m (→‎Source code: Fixed syntax highlighting.)
Line 9:
===Source code===
 
<langsyntaxhighlight lang=ecmascript>/* Module "complex.wren" */
 
import "./trait" for Cloneable
Line 950:
static sum(a) { a.reduce { |acc, x| acc + x } }
static prod(a) { a[1..-1].reduce(a[0]) { |acc, x| acc * x } }
}</langsyntaxhighlight>
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.