Category talk:Wren-big: Difference between revisions

Content added Content deleted
m (→‎Source code: Consistency change.)
(→‎Source code: Removed type aliases which are no longer needed.)
Line 40: Line 40:
<lang ecmascript>/* Module "big.wren" */
<lang ecmascript>/* Module "big.wren" */


import "/trait" for Comparable
import "./trait" for Comparable
import "random" for Random
import "random" for Random


Line 1,798: Line 1,798:
static min(a) { a.reduce { |acc, x| (x < acc) ? x : acc } }
static min(a) { a.reduce { |acc, x| (x < acc) ? x : acc } }
}
}

// Type aliases for classes in case of any name clashes with other modules.
var Big_BigInt = BigInt
var Big_BigInts = BigInts
var Big_BigRat = BigRat
var Big_BigRats = BigRats
var Big_Comparable = Comparable // in case imported indirectly


// Initialize static fields.
// Initialize static fields.