native module
Maylang standard-library module.
import "native" as native;
Module note — This page also inventories runtime support functions (
__op_*,jd_*, formatting and error helpers); their exposed names are not a separate stability guarantee.
Functions
Ok
fun Ok(value: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
Err
fun Err(error: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
Some
fun Some(value: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
None
fun None() -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__op_add
fun __op_add(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__op_sub
fun __op_sub(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__op_mul
fun __op_mul(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__op_div
fun __op_div(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
str_concat
fun str_concat(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_utf8_width
fun __native_utf8_width(byte: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_copy_bytes
fun __native_copy_bytes(destination: Int, source: Int, count: Int) -> IntNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_string_bytes
fun __native_string_bytes(s: Any, start: Any, count: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_bytes_match
fun __native_bytes_match(s: Any, start: Any, p: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_utf8_consistent
fun __native_utf8_consistent(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_boundary
fun __native_boundary(s: Any, offset: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
substring
fun substring(s: Any, start: Any, count: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
is_space_code
fun is_space_code(c: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
is_upper_code
fun is_upper_code(c: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
is_lower_code
fun is_lower_code(c: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
trim
fun trim(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_ascii_case
fun __native_ascii_case(s: Any, low: Any, delta: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
to_lower
fun to_lower(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
to_upper
fun to_upper(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_find
fun __native_find(s: Any, sub: Any, offset: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
index_of
fun index_of(s: Any, sub: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
contains
fun contains(s: Any, sub: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
starts_with
fun starts_with(s: Any, prefix: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_starts_with_codepoints
fun __native_starts_with_codepoints(s: Any, prefix: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
ends_with
fun ends_with(s: Any, suffix: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_ends_with_codepoints
fun __native_ends_with_codepoints(s: Any, suffix: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
split
fun split(s: Any, delim: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
replace
fun replace(s: Any, needle: Any, replacement: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
chars
fun chars(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
repeat
fun repeat(s: Any, n: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__join_list
fun __join_list(xs: Any, separator: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
join
fun join(xs: Any, sep: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
int
fun int(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
float
fun float(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
float_str
fun float_str(f: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
reverse
fun reverse(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__native_reverse_bytes
fun __native_reverse_bytes(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
range
fun range(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
sum
fun sum(xs: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
min
fun min(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
max
fun max(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
abs
fun abs(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
sort
fun sort(xs: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
keys
fun keys(m: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
values
fun values(m: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
has
fun has(x: Any, key: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
merge
fun merge(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
remove
fun remove(m: Any, key: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
str
fun str(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
make_error
fun make_error(kind: Any, message: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
raise_error
fun raise_error(kind: Any, message: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
fail_list
fun fail_list(items: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
type_name
fun type_name(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
raise_binop_error
fun raise_binop_error(a: Any, b: Any, sym: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
raise_add_error
fun raise_add_error(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
raise_exp_error
fun raise_exp_error(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
raise_div_zero
fun raise_div_zero() -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
raise_overflow
fun raise_overflow() -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
raise_io_error
fun raise_io_error(message: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
ptr
fun ptr(n: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
print_error
fun print_error(e: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
concat_lists
fun concat_lists(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
string_repr
fun string_repr(v: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
bool
fun bool(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
type
fun type(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
sign
fun sign(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
parse_int
fun parse_int(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
parse_float
fun parse_float(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
env
fun env(name: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
pi
fun pi() -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
e
fun e() -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
round
fun round(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
sinh
fun sinh(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
cosh
fun cosh(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
tanh
fun tanh(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
hypot
fun hypot(x: Any, y: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
cbrt
fun cbrt(x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
jd_is_space
fun jd_is_space(c: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
jd_skip
fun jd_skip(s: Any, i: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
jd_hex
fun jd_hex(c: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
jd_string
fun jd_string(s: Any, i: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
jd_number
fun jd_number(s: Any, i: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
jd_array
fun jd_array(s: Any, i: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
jd_object
fun jd_object(s: Any, i: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
jd_value
fun jd_value(s: Any, i: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
json_parse
fun json_parse(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
jq_escape
fun jq_escape(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
__jd_escape_codepoints
fun __jd_escape_codepoints(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
json_stringify
fun json_stringify(v: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
clamp
fun clamp(x: Any, lo: Any, hi: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
chr
fun chr(n: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
ord
fun ord(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
even
fun even(n: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
odd
fun odd(n: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
product
fun product(xs: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
count
fun count(xs: Any, x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
find
fun find(xs: Any, x: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
slice
fun slice(xs: Any, start: Any, stop: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
enumerate
fun enumerate(xs: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
zip
fun zip(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
flatten
fun flatten(xss: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
unique
fun unique(xs: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
range_step
fun range_step(a: Any, b: Any, step: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
pad_left
fun pad_left(s: Any, width: Any, ch: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
pad_right
fun pad_right(s: Any, width: Any, ch: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
split_lines
fun split_lines(s: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
get
fun get(m: Any, key: Any, fallback: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
times
fun times(n: Any, f: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
each
fun each(xs: Any, f: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
assert_eq
fun assert_eq(a: Any, b: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
ccall
fun ccall(fn: Any, args: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
extern_c
fun extern_c(fn: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
sin
fun sin(value: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
cos
fun cos(value: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
tan
fun tan(value: Any) -> AnyNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source