Functions
between core
fn (x: Int | Dec, low: Int | Dec, high: Int | Dec): Bool
Return true if x is between low and high (inclusive).
Example
between(5, 1, 10) // true
between(1, 1, 10) // true (inclusive)
between(10, 1, 10) // true (inclusive)
between(0, 1, 10) // false
between(3.14, 3.0, 4.0) // true
eq core
fn (a: Any, b: Any)
Return true if a is equal to b.
Example
eq(1, 1) // true
eq(1, 2) // false
eq("hi", "hi") // true
eq([1, 2], [1, 2]) // true
gt core
fn (a: Int | Dec, b: Int | Dec)
Return true if a is greater than b.
Example
gt(5, 3) // true
gt(3, 5) // false
gt(3, 3) // false
gt(2.5, 2) // true
gte core
fn (a: Int | Dec, b: Int | Dec)
Return true if a is greater than or equal to b.
Example
gte(5, 3) // true
gte(3, 3) // true
gte(2, 5) // false
in core
fn (value: Any, coll: Vec): Bool
Return true if value is an element of coll.
Example
in(2, [1, 2, 3]) // true
in(4, [1, 2, 3]) // false
in("a", ["a", "b"]) // true
in(1, []) // false
lt core
fn (a: Int | Dec, b: Int | Dec)
Return true if a is less than b.
Example
lt(3, 5) // true
lt(5, 3) // false
lt(3, 3) // false
lte core
fn (a: Int | Dec, b: Int | Dec)
Return true if a is less than or equal to b.
Example
lte(3, 5) // true
lte(3, 3) // true
lte(5, 3) // false
ne core
fn (a: Any, b: Any)
Return true if a is not equal to b.
Example
ne(1, 2) // true
ne(1, 1) // false
ne("a", "b") // true