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

may
fun Ok(value: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

Err

may
fun Err(error: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

Some

may
fun Some(value: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

None

may
fun None() -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__op_add

may
fun __op_add(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__op_sub

may
fun __op_sub(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__op_mul

may
fun __op_mul(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__op_div

may
fun __op_div(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

str_concat

may
fun str_concat(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_utf8_width

may
fun __native_utf8_width(byte: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_copy_bytes

may
fun __native_copy_bytes(destination: Int, source: Int, count: Int) -> Int

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_string_bytes

may
fun __native_string_bytes(s: Any, start: Any, count: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_bytes_match

may
fun __native_bytes_match(s: Any, start: Any, p: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_utf8_consistent

may
fun __native_utf8_consistent(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_boundary

may
fun __native_boundary(s: Any, offset: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

substring

may
fun substring(s: Any, start: Any, count: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

is_space_code

may
fun is_space_code(c: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

is_upper_code

may
fun is_upper_code(c: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

is_lower_code

may
fun is_lower_code(c: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

trim

may
fun trim(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_ascii_case

may
fun __native_ascii_case(s: Any, low: Any, delta: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

to_lower

may
fun to_lower(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

to_upper

may
fun to_upper(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_find

may
fun __native_find(s: Any, sub: Any, offset: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

index_of

may
fun index_of(s: Any, sub: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

contains

may
fun contains(s: Any, sub: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

starts_with

may
fun starts_with(s: Any, prefix: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_starts_with_codepoints

may
fun __native_starts_with_codepoints(s: Any, prefix: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

ends_with

may
fun ends_with(s: Any, suffix: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_ends_with_codepoints

may
fun __native_ends_with_codepoints(s: Any, suffix: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

split

may
fun split(s: Any, delim: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

replace

may
fun replace(s: Any, needle: Any, replacement: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

chars

may
fun chars(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

repeat

may
fun repeat(s: Any, n: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__join_list

may
fun __join_list(xs: Any, separator: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

join

may
fun join(xs: Any, sep: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

int

may
fun int(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

float

may
fun float(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

float_str

may
fun float_str(f: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

reverse

may
fun reverse(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__native_reverse_bytes

may
fun __native_reverse_bytes(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

range

may
fun range(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

sum

may
fun sum(xs: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

min

may
fun min(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

max

may
fun max(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

abs

may
fun abs(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

sort

may
fun sort(xs: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

keys

may
fun keys(m: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

values

may
fun values(m: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

has

may
fun has(x: Any, key: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

merge

may
fun merge(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

remove

may
fun remove(m: Any, key: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

str

may
fun str(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

make_error

may
fun make_error(kind: Any, message: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

raise_error

may
fun raise_error(kind: Any, message: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

fail_list

may
fun fail_list(items: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

type_name

may
fun type_name(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

raise_binop_error

may
fun raise_binop_error(a: Any, b: Any, sym: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

raise_add_error

may
fun raise_add_error(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

raise_exp_error

may
fun raise_exp_error(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

raise_div_zero

may
fun raise_div_zero() -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

raise_overflow

may
fun raise_overflow() -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

raise_io_error

may
fun raise_io_error(message: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

ptr

may
fun ptr(n: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

may
fun print_error(e: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

concat_lists

may
fun concat_lists(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

string_repr

may
fun string_repr(v: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

bool

may
fun bool(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

type

may
fun type(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

sign

may
fun sign(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

parse_int

may
fun parse_int(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

parse_float

may
fun parse_float(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

env

may
fun env(name: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

pi

may
fun pi() -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

e

may
fun e() -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

round

may
fun round(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

sinh

may
fun sinh(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

cosh

may
fun cosh(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

tanh

may
fun tanh(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

hypot

may
fun hypot(x: Any, y: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

cbrt

may
fun cbrt(x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

jd_is_space

may
fun jd_is_space(c: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

jd_skip

may
fun jd_skip(s: Any, i: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

jd_hex

may
fun jd_hex(c: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

jd_string

may
fun jd_string(s: Any, i: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

jd_number

may
fun jd_number(s: Any, i: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

jd_array

may
fun jd_array(s: Any, i: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

jd_object

may
fun jd_object(s: Any, i: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

jd_value

may
fun jd_value(s: Any, i: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

json_parse

may
fun json_parse(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

jq_escape

may
fun jq_escape(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

__jd_escape_codepoints

may
fun __jd_escape_codepoints(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

json_stringify

may
fun json_stringify(v: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

clamp

may
fun clamp(x: Any, lo: Any, hi: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

chr

may
fun chr(n: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

ord

may
fun ord(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

even

may
fun even(n: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

odd

may
fun odd(n: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

product

may
fun product(xs: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

count

may
fun count(xs: Any, x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

find

may
fun find(xs: Any, x: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

slice

may
fun slice(xs: Any, start: Any, stop: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

enumerate

may
fun enumerate(xs: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

zip

may
fun zip(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

flatten

may
fun flatten(xss: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

unique

may
fun unique(xs: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

range_step

may
fun range_step(a: Any, b: Any, step: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

pad_left

may
fun pad_left(s: Any, width: Any, ch: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

pad_right

may
fun pad_right(s: Any, width: Any, ch: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

split_lines

may
fun split_lines(s: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

get

may
fun get(m: Any, key: Any, fallback: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

times

may
fun times(n: Any, f: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

each

may
fun each(xs: Any, f: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

assert_eq

may
fun assert_eq(a: Any, b: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

ccall

may
fun ccall(fn: Any, args: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

extern_c

may
fun extern_c(fn: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

sin

may
fun sin(value: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

cos

may
fun cos(value: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

tan

may
fun tan(value: Any) -> Any

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source