Category talk:Wren-i64: Difference between revisions

m
Fixed syntax highlighting.
(→‎Source code (Wren): Added U64.nextPrime method.)
m (Fixed syntax highlighting.)
Line 29:
 
==Source code (Wren)==
<langsyntaxhighlight lang=ecmascript>/* Module "i64.wren" */
 
import "./trait" for Comparable
Line 729:
static min(sz) { sz.reduce { |acc, x| (x > acc) ? x : acc } }
static max(sz) { sz.reduce { |acc, x| (x < acc) ? x : acc } }
}</langsyntaxhighlight>
 
==Source code (C)==
<langsyntaxhighlight lang=c>/* gcc -O3 wren-i64.c -o wren-i64 -lwren -lm */
 
#include <stdio.h>
Line 1,643:
free(script);
return 0;
}</langsyntaxhighlight>
9,476

edits