slovo/docs/language/STDLIB_API.md

34 KiB

Slovo Standard Library API Catalog

Generated from lib/std/*.slo by scripts/render-stdlib-api-doc.js. Do not edit this file by hand.

Stability Tiers

  • beta-supported: exported from lib/std and covered by source-search, promotion, or facade gates in the current beta line.
  • experimental: not used for exported lib/std helpers in 1.0.0-beta.19; future releases may mark new helpers this way before they graduate.
  • internal: helper names that are not exported from their module; they are intentionally omitted from this catalog.

The catalog is a beta API discovery aid, not a stable 1.0.0 standard-library freeze. Module-local concrete aliases are normalized in signatures so names such as VecI32 and ResultU64 do not leak into the public catalog. Only exported (fn ...) helpers are listed; (type ...) aliases and non-exported helpers are omitted.

Summary

  • Modules: 19
  • Exported helper signatures: 590
  • Exported type aliases omitted: 0
  • Default tier: beta-supported

Modules

std.cli

  • Path: lib/std/cli.slo

  • Tier: beta-supported

  • Exported helper signatures: 26

  • arg_text_result ((index i32)) -> (result string i32)

  • arg_text_option ((index i32)) -> (option string)

  • arg_i32_result ((index i32)) -> (result i32 i32)

  • arg_i32_option ((index i32)) -> (option i32)

  • arg_i32_or_zero ((index i32)) -> i32

  • arg_i32_or ((index i32) (fallback i32)) -> i32

  • arg_u32_result ((index i32)) -> (result u32 i32)

  • arg_u32_option ((index i32)) -> (option u32)

  • arg_u32_or_zero ((index i32)) -> u32

  • arg_u32_or ((index i32) (fallback u32)) -> u32

  • arg_i64_result ((index i32)) -> (result i64 i32)

  • arg_i64_option ((index i32)) -> (option i64)

  • arg_i64_or_zero ((index i32)) -> i64

  • arg_i64_or ((index i32) (fallback i64)) -> i64

  • arg_u64_result ((index i32)) -> (result u64 i32)

  • arg_u64_option ((index i32)) -> (option u64)

  • arg_u64_or_zero ((index i32)) -> u64

  • arg_u64_or ((index i32) (fallback u64)) -> u64

  • arg_f64_result ((index i32)) -> (result f64 i32)

  • arg_f64_option ((index i32)) -> (option f64)

  • arg_f64_or_zero ((index i32)) -> f64

  • arg_f64_or ((index i32) (fallback f64)) -> f64

  • arg_bool_result ((index i32)) -> (result bool i32)

  • arg_bool_option ((index i32)) -> (option bool)

  • arg_bool_or_false ((index i32)) -> bool

  • arg_bool_or ((index i32) (fallback bool)) -> bool

std.env

  • Path: lib/std/env.slo

  • Tier: beta-supported

  • Exported helper signatures: 29

  • get ((name string)) -> string

  • get_result ((name string)) -> (result string i32)

  • get_option ((name string)) -> (option string)

  • has ((name string)) -> bool

  • get_or ((name string) (fallback string)) -> string

  • get_i32_result ((name string)) -> (result i32 i32)

  • get_i32_option ((name string)) -> (option i32)

  • get_i32_or_zero ((name string)) -> i32

  • get_i32_or ((name string) (fallback i32)) -> i32

  • get_u32_result ((name string)) -> (result u32 i32)

  • get_u32_option ((name string)) -> (option u32)

  • get_u32_or_zero ((name string)) -> u32

  • get_u32_or ((name string) (fallback u32)) -> u32

  • get_i64_result ((name string)) -> (result i64 i32)

  • get_i64_option ((name string)) -> (option i64)

  • get_i64_or_zero ((name string)) -> i64

  • get_i64_or ((name string) (fallback i64)) -> i64

  • get_u64_result ((name string)) -> (result u64 i32)

  • get_u64_option ((name string)) -> (option u64)

  • get_u64_or_zero ((name string)) -> u64

  • get_u64_or ((name string) (fallback u64)) -> u64

  • get_f64_result ((name string)) -> (result f64 i32)

  • get_f64_option ((name string)) -> (option f64)

  • get_f64_or_zero ((name string)) -> f64

  • get_f64_or ((name string) (fallback f64)) -> f64

  • get_bool_result ((name string)) -> (result bool i32)

  • get_bool_option ((name string)) -> (option bool)

  • get_bool_or_false ((name string)) -> bool

  • get_bool_or ((name string) (fallback bool)) -> bool

std.fs

  • Path: lib/std/fs.slo

  • Tier: beta-supported

  • Exported helper signatures: 43

  • read_text ((path string)) -> string

  • read_text_result ((path string)) -> (result string i32)

  • read_text_option ((path string)) -> (option string)

  • write_text_status ((path string) (text string)) -> i32

  • write_text_result ((path string) (text string)) -> (result i32 i32)

  • exists ((path string)) -> bool

  • is_file ((path string)) -> bool

  • is_dir ((path string)) -> bool

  • remove_file_result ((path string)) -> (result i32 i32)

  • create_dir_result ((path string)) -> (result i32 i32)

  • remove_file_ok ((path string)) -> bool

  • create_dir_ok ((path string)) -> bool

  • open_text_read_result ((path string)) -> (result i32 i32)

  • read_open_text_result ((handle i32)) -> (result string i32)

  • close_result ((handle i32)) -> (result i32 i32)

  • read_text_via_handle_result ((path string)) -> (result string i32)

  • close_ok ((handle i32)) -> bool

  • read_text_or ((path string) (fallback string)) -> string

  • write_text_ok ((path string) (text string)) -> bool

  • read_i32_result ((path string)) -> (result i32 i32)

  • read_i32_option ((path string)) -> (option i32)

  • read_i32_or_zero ((path string)) -> i32

  • read_i32_or ((path string) (fallback i32)) -> i32

  • read_u32_result ((path string)) -> (result u32 i32)

  • read_u32_option ((path string)) -> (option u32)

  • read_u32_or_zero ((path string)) -> u32

  • read_u32_or ((path string) (fallback u32)) -> u32

  • read_i64_result ((path string)) -> (result i64 i32)

  • read_i64_option ((path string)) -> (option i64)

  • read_i64_or_zero ((path string)) -> i64

  • read_i64_or ((path string) (fallback i64)) -> i64

  • read_u64_result ((path string)) -> (result u64 i32)

  • read_u64_option ((path string)) -> (option u64)

  • read_u64_or_zero ((path string)) -> u64

  • read_u64_or ((path string) (fallback u64)) -> u64

  • read_f64_result ((path string)) -> (result f64 i32)

  • read_f64_option ((path string)) -> (option f64)

  • read_f64_or_zero ((path string)) -> f64

  • read_f64_or ((path string) (fallback f64)) -> f64

  • read_bool_result ((path string)) -> (result bool i32)

  • read_bool_option ((path string)) -> (option bool)

  • read_bool_or_false ((path string)) -> bool

  • read_bool_or ((path string) (fallback bool)) -> bool

std.io

  • Path: lib/std/io.slo

  • Tier: beta-supported

  • Exported helper signatures: 41

  • print_i32_zero ((value i32)) -> i32

  • print_u32_zero ((value u32)) -> i32

  • print_i64_zero ((value i64)) -> i32

  • print_u64_zero ((value u64)) -> i32

  • print_f64_zero ((value f64)) -> i32

  • print_string_zero ((value string)) -> i32

  • print_bool_zero ((value bool)) -> i32

  • print_i32_value ((value i32)) -> i32

  • print_u32_value ((value u32)) -> u32

  • print_i64_value ((value i64)) -> i64

  • print_u64_value ((value u64)) -> u64

  • print_f64_value ((value f64)) -> f64

  • print_string_value ((value string)) -> string

  • print_bool_value ((value bool)) -> bool

  • read_stdin_result () -> (result string i32)

  • read_stdin_option () -> (option string)

  • read_stdin_or ((fallback string)) -> string

  • read_stdin_i32_result () -> (result i32 i32)

  • read_stdin_i32_option () -> (option i32)

  • read_stdin_i32_or_zero () -> i32

  • read_stdin_i32_or ((fallback i32)) -> i32

  • read_stdin_u32_result () -> (result u32 i32)

  • read_stdin_u32_option () -> (option u32)

  • read_stdin_u32_or_zero () -> u32

  • read_stdin_u32_or ((fallback u32)) -> u32

  • read_stdin_i64_result () -> (result i64 i32)

  • read_stdin_i64_option () -> (option i64)

  • read_stdin_i64_or_zero () -> i64

  • read_stdin_i64_or ((fallback i64)) -> i64

  • read_stdin_u64_result () -> (result u64 i32)

  • read_stdin_u64_option () -> (option u64)

  • read_stdin_u64_or_zero () -> u64

  • read_stdin_u64_or ((fallback u64)) -> u64

  • read_stdin_f64_result () -> (result f64 i32)

  • read_stdin_f64_option () -> (option f64)

  • read_stdin_f64_or_zero () -> f64

  • read_stdin_f64_or ((fallback f64)) -> f64

  • read_stdin_bool_result () -> (result bool i32)

  • read_stdin_bool_option () -> (option bool)

  • read_stdin_bool_or_false () -> bool

  • read_stdin_bool_or ((fallback bool)) -> bool

std.json

  • Path: lib/std/json.slo

  • Tier: beta-supported

  • Exported helper signatures: 32

  • quote_string ((value string)) -> string

  • null_value () -> string

  • bool_value ((value bool)) -> string

  • i32_value ((value i32)) -> string

  • u32_value ((value u32)) -> string

  • i64_value ((value i64)) -> string

  • u64_value ((value u64)) -> string

  • f64_value ((value f64)) -> string

  • parse_string_value_result ((token string)) -> (result string i32)

  • parse_bool_value_result ((token string)) -> (result bool i32)

  • parse_i32_value_result ((token string)) -> (result i32 i32)

  • parse_u32_value_result ((token string)) -> (result u32 i32)

  • parse_i64_value_result ((token string)) -> (result i64 i32)

  • parse_u64_value_result ((token string)) -> (result u64 i32)

  • parse_f64_value_result ((token string)) -> (result f64 i32)

  • parse_null_value_result ((token string)) -> (result bool i32)

  • field_string ((name string) (value string)) -> string

  • field_bool ((name string) (value bool)) -> string

  • field_i32 ((name string) (value i32)) -> string

  • field_u32 ((name string) (value u32)) -> string

  • field_i64 ((name string) (value i64)) -> string

  • field_u64 ((name string) (value u64)) -> string

  • field_f64 ((name string) (value f64)) -> string

  • field_null ((name string)) -> string

  • array0 () -> string

  • array1 ((first string)) -> string

  • array2 ((first string) (second string)) -> string

  • array3 ((first string) (second string) (third string)) -> string

  • object0 () -> string

  • object1 ((first string)) -> string

  • object2 ((first string) (second string)) -> string

  • object3 ((first string) (second string) (third string)) -> string

std.math

  • Path: lib/std/math.slo

  • Tier: beta-supported

  • Exported helper signatures: 45

  • abs_i32 ((value i32)) -> i32

  • neg_i32 ((value i32)) -> i32

  • rem_i32 ((left i32) (right i32)) -> i32

  • bit_and_i32 ((left i32) (right i32)) -> i32

  • bit_or_i32 ((left i32) (right i32)) -> i32

  • bit_xor_i32 ((left i32) (right i32)) -> i32

  • is_even_i32 ((value i32)) -> bool

  • is_odd_i32 ((value i32)) -> bool

  • min_i32 ((left i32) (right i32)) -> i32

  • max_i32 ((left i32) (right i32)) -> i32

  • clamp_i32 ((value i32) (low i32) (high i32)) -> i32

  • square_i32 ((value i32)) -> i32

  • cube_i32 ((value i32)) -> i32

  • is_zero_i32 ((value i32)) -> bool

  • is_positive_i32 ((value i32)) -> bool

  • is_negative_i32 ((value i32)) -> bool

  • in_range_i32 ((value i32) (low i32) (high i32)) -> bool

  • abs_i64 ((value i64)) -> i64

  • neg_i64 ((value i64)) -> i64

  • rem_i64 ((left i64) (right i64)) -> i64

  • bit_and_i64 ((left i64) (right i64)) -> i64

  • bit_or_i64 ((left i64) (right i64)) -> i64

  • bit_xor_i64 ((left i64) (right i64)) -> i64

  • is_even_i64 ((value i64)) -> bool

  • is_odd_i64 ((value i64)) -> bool

  • min_i64 ((left i64) (right i64)) -> i64

  • max_i64 ((left i64) (right i64)) -> i64

  • clamp_i64 ((value i64) (low i64) (high i64)) -> i64

  • square_i64 ((value i64)) -> i64

  • cube_i64 ((value i64)) -> i64

  • is_zero_i64 ((value i64)) -> bool

  • is_positive_i64 ((value i64)) -> bool

  • is_negative_i64 ((value i64)) -> bool

  • in_range_i64 ((value i64) (low i64) (high i64)) -> bool

  • abs_f64 ((value f64)) -> f64

  • neg_f64 ((value f64)) -> f64

  • min_f64 ((left f64) (right f64)) -> f64

  • max_f64 ((left f64) (right f64)) -> f64

  • clamp_f64 ((value f64) (low f64) (high f64)) -> f64

  • square_f64 ((value f64)) -> f64

  • cube_f64 ((value f64)) -> f64

  • is_zero_f64 ((value f64)) -> bool

  • is_positive_f64 ((value f64)) -> bool

  • is_negative_f64 ((value f64)) -> bool

  • in_range_f64 ((value f64) (low f64) (high f64)) -> bool

std.net

  • Path: lib/std/net.slo

  • Tier: beta-supported

  • Exported helper signatures: 9

  • tcp_connect_loopback_result ((port i32)) -> (result i32 i32)

  • tcp_listen_loopback_result ((port i32)) -> (result i32 i32)

  • tcp_bound_port_result ((handle i32)) -> (result i32 i32)

  • tcp_accept_result ((listener i32)) -> (result i32 i32)

  • tcp_read_all_result ((handle i32)) -> (result string i32)

  • tcp_write_text_result ((handle i32) (text string)) -> (result i32 i32)

  • tcp_close_result ((handle i32)) -> (result i32 i32)

  • tcp_write_text_ok ((handle i32) (text string)) -> bool

  • tcp_close_ok ((handle i32)) -> bool

std.num

  • Path: lib/std/num.slo

  • Tier: beta-supported

  • Exported helper signatures: 14

  • i32_to_i64 ((value i32)) -> i64

  • i32_to_f64 ((value i32)) -> f64

  • i64_to_f64 ((value i64)) -> f64

  • i64_to_i32_result ((value i64)) -> (result i32 i32)

  • f64_to_i32_result ((value f64)) -> (result i32 i32)

  • f64_to_i64_result ((value f64)) -> (result i64 i32)

  • i32_to_string ((value i32)) -> string

  • u32_to_string ((value u32)) -> string

  • i64_to_string ((value i64)) -> string

  • u64_to_string ((value u64)) -> string

  • f64_to_string ((value f64)) -> string

  • i64_to_i32_or ((value i64) (fallback i32)) -> i32

  • f64_to_i32_or ((value f64) (fallback i32)) -> i32

  • f64_to_i64_or ((value f64) (fallback i64)) -> i64

std.option

  • Path: lib/std/option.slo

  • Tier: beta-supported

  • Exported helper signatures: 49

  • some_i32 ((value i32)) -> (option i32)

  • none_i32 () -> (option i32)

  • is_some_i32 ((value (option i32))) -> bool

  • is_none_i32 ((value (option i32))) -> bool

  • unwrap_some_i32 ((value (option i32))) -> i32

  • unwrap_or_i32 ((value (option i32)) (fallback i32)) -> i32

  • some_or_err_i32 ((value (option i32)) (err_code i32)) -> (result i32 i32)

  • some_u32 ((value u32)) -> (option u32)

  • none_u32 () -> (option u32)

  • is_some_u32 ((value (option u32))) -> bool

  • is_none_u32 ((value (option u32))) -> bool

  • unwrap_some_u32 ((value (option u32))) -> u32

  • unwrap_or_u32 ((value (option u32)) (fallback u32)) -> u32

  • some_or_err_u32 ((value (option u32)) (err_code i32)) -> (result u32 i32)

  • some_i64 ((value i64)) -> (option i64)

  • none_i64 () -> (option i64)

  • is_some_i64 ((value (option i64))) -> bool

  • is_none_i64 ((value (option i64))) -> bool

  • unwrap_some_i64 ((value (option i64))) -> i64

  • unwrap_or_i64 ((value (option i64)) (fallback i64)) -> i64

  • some_or_err_i64 ((value (option i64)) (err_code i32)) -> (result i64 i32)

  • some_u64 ((value u64)) -> (option u64)

  • none_u64 () -> (option u64)

  • is_some_u64 ((value (option u64))) -> bool

  • is_none_u64 ((value (option u64))) -> bool

  • unwrap_some_u64 ((value (option u64))) -> u64

  • unwrap_or_u64 ((value (option u64)) (fallback u64)) -> u64

  • some_or_err_u64 ((value (option u64)) (err_code i32)) -> (result u64 i32)

  • some_f64 ((value f64)) -> (option f64)

  • none_f64 () -> (option f64)

  • is_some_f64 ((value (option f64))) -> bool

  • is_none_f64 ((value (option f64))) -> bool

  • unwrap_some_f64 ((value (option f64))) -> f64

  • unwrap_or_f64 ((value (option f64)) (fallback f64)) -> f64

  • some_or_err_f64 ((value (option f64)) (err_code i32)) -> (result f64 i32)

  • some_bool ((value bool)) -> (option bool)

  • none_bool () -> (option bool)

  • is_some_bool ((value (option bool))) -> bool

  • is_none_bool ((value (option bool))) -> bool

  • unwrap_some_bool ((value (option bool))) -> bool

  • unwrap_or_bool ((value (option bool)) (fallback bool)) -> bool

  • some_or_err_bool ((value (option bool)) (err_code i32)) -> (result bool i32)

  • some_string ((value string)) -> (option string)

  • none_string () -> (option string)

  • is_some_string ((value (option string))) -> bool

  • is_none_string ((value (option string))) -> bool

  • unwrap_some_string ((value (option string))) -> string

  • unwrap_or_string ((value (option string)) (fallback string)) -> string

  • some_or_err_string ((value (option string)) (err_code i32)) -> (result string i32)

std.process

  • Path: lib/std/process.slo

  • Tier: beta-supported

  • Exported helper signatures: 31

  • argc () -> i32

  • arg ((index i32)) -> string

  • arg_result ((index i32)) -> (result string i32)

  • arg_option ((index i32)) -> (option string)

  • has_arg ((index i32)) -> bool

  • arg_or ((index i32) (fallback string)) -> string

  • arg_or_empty ((index i32)) -> string

  • arg_i32_result ((index i32)) -> (result i32 i32)

  • arg_i32_option ((index i32)) -> (option i32)

  • arg_i32_or_zero ((index i32)) -> i32

  • arg_i32_or ((index i32) (fallback i32)) -> i32

  • arg_u32_result ((index i32)) -> (result u32 i32)

  • arg_u32_option ((index i32)) -> (option u32)

  • arg_u32_or_zero ((index i32)) -> u32

  • arg_u32_or ((index i32) (fallback u32)) -> u32

  • arg_i64_result ((index i32)) -> (result i64 i32)

  • arg_i64_option ((index i32)) -> (option i64)

  • arg_i64_or_zero ((index i32)) -> i64

  • arg_i64_or ((index i32) (fallback i64)) -> i64

  • arg_u64_result ((index i32)) -> (result u64 i32)

  • arg_u64_option ((index i32)) -> (option u64)

  • arg_u64_or_zero ((index i32)) -> u64

  • arg_u64_or ((index i32) (fallback u64)) -> u64

  • arg_f64_result ((index i32)) -> (result f64 i32)

  • arg_f64_option ((index i32)) -> (option f64)

  • arg_f64_or_zero ((index i32)) -> f64

  • arg_f64_or ((index i32) (fallback f64)) -> f64

  • arg_bool_result ((index i32)) -> (result bool i32)

  • arg_bool_option ((index i32)) -> (option bool)

  • arg_bool_or_false ((index i32)) -> bool

  • arg_bool_or ((index i32) (fallback bool)) -> bool

std.random

  • Path: lib/std/random.slo

  • Tier: beta-supported

  • Exported helper signatures: 2

  • random_i32 () -> i32

  • random_i32_non_negative () -> bool

std.result

  • Path: lib/std/result.slo

  • Tier: beta-supported

  • Exported helper signatures: 56

  • ok_i32 ((value i32)) -> (result i32 i32)

  • err_i32 ((code i32)) -> (result i32 i32)

  • is_ok_i32 ((value (result i32 i32))) -> bool

  • is_err_i32 ((value (result i32 i32))) -> bool

  • unwrap_ok_i32 ((value (result i32 i32))) -> i32

  • unwrap_err_i32 ((value (result i32 i32))) -> i32

  • unwrap_or_i32 ((value (result i32 i32)) (fallback i32)) -> i32

  • ok_or_none_i32 ((value (result i32 i32))) -> (option i32)

  • ok_u32 ((value u32)) -> (result u32 i32)

  • err_u32 ((code i32)) -> (result u32 i32)

  • is_ok_u32 ((value (result u32 i32))) -> bool

  • is_err_u32 ((value (result u32 i32))) -> bool

  • unwrap_ok_u32 ((value (result u32 i32))) -> u32

  • unwrap_err_u32 ((value (result u32 i32))) -> i32

  • unwrap_or_u32 ((value (result u32 i32)) (fallback u32)) -> u32

  • ok_or_none_u32 ((value (result u32 i32))) -> (option u32)

  • ok_i64 ((value i64)) -> (result i64 i32)

  • err_i64 ((code i32)) -> (result i64 i32)

  • is_ok_i64 ((value (result i64 i32))) -> bool

  • is_err_i64 ((value (result i64 i32))) -> bool

  • unwrap_ok_i64 ((value (result i64 i32))) -> i64

  • unwrap_err_i64 ((value (result i64 i32))) -> i32

  • unwrap_or_i64 ((value (result i64 i32)) (fallback i64)) -> i64

  • ok_or_none_i64 ((value (result i64 i32))) -> (option i64)

  • ok_u64 ((value u64)) -> (result u64 i32)

  • err_u64 ((code i32)) -> (result u64 i32)

  • is_ok_u64 ((value (result u64 i32))) -> bool

  • is_err_u64 ((value (result u64 i32))) -> bool

  • unwrap_ok_u64 ((value (result u64 i32))) -> u64

  • unwrap_err_u64 ((value (result u64 i32))) -> i32

  • unwrap_or_u64 ((value (result u64 i32)) (fallback u64)) -> u64

  • ok_or_none_u64 ((value (result u64 i32))) -> (option u64)

  • ok_string ((value string)) -> (result string i32)

  • err_string ((code i32)) -> (result string i32)

  • is_ok_string ((value (result string i32))) -> bool

  • is_err_string ((value (result string i32))) -> bool

  • unwrap_ok_string ((value (result string i32))) -> string

  • unwrap_err_string ((value (result string i32))) -> i32

  • unwrap_or_string ((value (result string i32)) (fallback string)) -> string

  • ok_or_none_string ((value (result string i32))) -> (option string)

  • ok_f64 ((value f64)) -> (result f64 i32)

  • err_f64 ((code i32)) -> (result f64 i32)

  • is_ok_f64 ((value (result f64 i32))) -> bool

  • is_err_f64 ((value (result f64 i32))) -> bool

  • unwrap_ok_f64 ((value (result f64 i32))) -> f64

  • unwrap_err_f64 ((value (result f64 i32))) -> i32

  • unwrap_or_f64 ((value (result f64 i32)) (fallback f64)) -> f64

  • ok_or_none_f64 ((value (result f64 i32))) -> (option f64)

  • ok_bool ((value bool)) -> (result bool i32)

  • err_bool ((code i32)) -> (result bool i32)

  • is_ok_bool ((value (result bool i32))) -> bool

  • is_err_bool ((value (result bool i32))) -> bool

  • unwrap_ok_bool ((value (result bool i32))) -> bool

  • unwrap_err_bool ((value (result bool i32))) -> i32

  • unwrap_or_bool ((value (result bool i32)) (fallback bool)) -> bool

  • ok_or_none_bool ((value (result bool i32))) -> (option bool)

std.string

  • Path: lib/std/string.slo

  • Tier: beta-supported

  • Exported helper signatures: 30

  • len ((value string)) -> i32

  • concat ((left string) (right string)) -> string

  • byte_at_result ((value string) (index i32)) -> (result i32 i32)

  • slice_result ((value string) (start i32) (count i32)) -> (result string i32)

  • starts_with ((value string) (prefix string)) -> bool

  • ends_with ((value string) (suffix string)) -> bool

  • parse_i32_result ((value string)) -> (result i32 i32)

  • parse_i32_option ((value string)) -> (option i32)

  • parse_u32_result ((value string)) -> (result u32 i32)

  • parse_u32_option ((value string)) -> (option u32)

  • parse_i64_result ((value string)) -> (result i64 i32)

  • parse_i64_option ((value string)) -> (option i64)

  • parse_u64_result ((value string)) -> (result u64 i32)

  • parse_u64_option ((value string)) -> (option u64)

  • parse_f64_result ((value string)) -> (result f64 i32)

  • parse_f64_option ((value string)) -> (option f64)

  • parse_bool_result ((value string)) -> (result bool i32)

  • parse_bool_option ((value string)) -> (option bool)

  • parse_i32_or_zero ((value string)) -> i32

  • parse_u32_or_zero ((value string)) -> u32

  • parse_i64_or_zero ((value string)) -> i64

  • parse_u64_or_zero ((value string)) -> u64

  • parse_f64_or_zero ((value string)) -> f64

  • parse_bool_or_false ((value string)) -> bool

  • parse_i32_or ((value string) (fallback i32)) -> i32

  • parse_u32_or ((value string) (fallback u32)) -> u32

  • parse_i64_or ((value string) (fallback i64)) -> i64

  • parse_u64_or ((value string) (fallback u64)) -> u64

  • parse_f64_or ((value string) (fallback f64)) -> f64

  • parse_bool_or ((value string) (fallback bool)) -> bool

std.time

  • Path: lib/std/time.slo

  • Tier: beta-supported

  • Exported helper signatures: 2

  • monotonic_ms () -> i32

  • sleep_ms_zero () -> i32

std.vec_bool

  • Path: lib/std/vec_bool.slo

  • Tier: beta-supported

  • Exported helper signatures: 35

  • empty () -> (vec bool)

  • append ((values (vec bool)) (value bool)) -> (vec bool)

  • len ((values (vec bool))) -> i32

  • at ((values (vec bool)) (position i32)) -> bool

  • singleton ((value bool)) -> (vec bool)

  • append2 ((values (vec bool)) (first bool) (second bool)) -> (vec bool)

  • append3 ((values (vec bool)) (first bool) (second bool) (third bool)) -> (vec bool)

  • pair ((first bool) (second bool)) -> (vec bool)

  • triple ((first bool) (second bool) (third bool)) -> (vec bool)

  • is_empty ((values (vec bool))) -> bool

  • index_or ((values (vec bool)) (position i32) (fallback bool)) -> bool

  • first_or ((values (vec bool)) (fallback bool)) -> bool

  • last_or ((values (vec bool)) (fallback bool)) -> bool

  • index_option ((values (vec bool)) (position i32)) -> (option bool)

  • first_option ((values (vec bool))) -> (option bool)

  • last_option ((values (vec bool))) -> (option bool)

  • index_of_option ((values (vec bool)) (target bool)) -> (option i32)

  • last_index_of_option ((values (vec bool)) (target bool)) -> (option i32)

  • contains ((values (vec bool)) (target bool)) -> bool

  • count_of ((values (vec bool)) (target bool)) -> i32

  • concat ((left (vec bool)) (right (vec bool))) -> (vec bool)

  • take ((values (vec bool)) (count i32)) -> (vec bool)

  • starts_with ((values (vec bool)) (prefix (vec bool))) -> bool

  • without_prefix ((values (vec bool)) (prefix (vec bool))) -> (vec bool)

  • ends_with ((values (vec bool)) (suffix (vec bool))) -> bool

  • without_suffix ((values (vec bool)) (suffix (vec bool))) -> (vec bool)

  • drop ((values (vec bool)) (count i32)) -> (vec bool)

  • reverse ((values (vec bool))) -> (vec bool)

  • subvec ((values (vec bool)) (start i32) (end_exclusive i32)) -> (vec bool)

  • insert_at ((values (vec bool)) (position i32) (value bool)) -> (vec bool)

  • insert_range ((values (vec bool)) (position i32) (inserted (vec bool))) -> (vec bool)

  • replace_at ((values (vec bool)) (position i32) (replacement bool)) -> (vec bool)

  • replace_range ((values (vec bool)) (start i32) (end_exclusive i32) (replacement (vec bool))) -> (vec bool)

  • remove_at ((values (vec bool)) (position i32)) -> (vec bool)

  • remove_range ((values (vec bool)) (start i32) (end_exclusive i32)) -> (vec bool)

std.vec_f64

  • Path: lib/std/vec_f64.slo

  • Tier: beta-supported

  • Exported helper signatures: 36

  • empty () -> (vec f64)

  • append ((values (vec f64)) (value f64)) -> (vec f64)

  • len ((values (vec f64))) -> i32

  • at ((values (vec f64)) (position i32)) -> f64

  • singleton ((value f64)) -> (vec f64)

  • append2 ((values (vec f64)) (first f64) (second f64)) -> (vec f64)

  • append3 ((values (vec f64)) (first f64) (second f64) (third f64)) -> (vec f64)

  • pair ((first f64) (second f64)) -> (vec f64)

  • triple ((first f64) (second f64) (third f64)) -> (vec f64)

  • is_empty ((values (vec f64))) -> bool

  • index_or ((values (vec f64)) (position i32) (fallback f64)) -> f64

  • first_or ((values (vec f64)) (fallback f64)) -> f64

  • last_or ((values (vec f64)) (fallback f64)) -> f64

  • index_option ((values (vec f64)) (position i32)) -> (option f64)

  • first_option ((values (vec f64))) -> (option f64)

  • last_option ((values (vec f64))) -> (option f64)

  • index_of_option ((values (vec f64)) (target f64)) -> (option i32)

  • last_index_of_option ((values (vec f64)) (target f64)) -> (option i32)

  • contains ((values (vec f64)) (target f64)) -> bool

  • count_of ((values (vec f64)) (target f64)) -> i32

  • sum ((values (vec f64))) -> f64

  • concat ((left (vec f64)) (right (vec f64))) -> (vec f64)

  • take ((values (vec f64)) (count i32)) -> (vec f64)

  • starts_with ((values (vec f64)) (prefix (vec f64))) -> bool

  • without_prefix ((values (vec f64)) (prefix (vec f64))) -> (vec f64)

  • ends_with ((values (vec f64)) (suffix (vec f64))) -> bool

  • without_suffix ((values (vec f64)) (suffix (vec f64))) -> (vec f64)

  • drop ((values (vec f64)) (count i32)) -> (vec f64)

  • reverse ((values (vec f64))) -> (vec f64)

  • subvec ((values (vec f64)) (start i32) (end_exclusive i32)) -> (vec f64)

  • insert_at ((values (vec f64)) (position i32) (value f64)) -> (vec f64)

  • insert_range ((values (vec f64)) (position i32) (inserted (vec f64))) -> (vec f64)

  • replace_at ((values (vec f64)) (position i32) (replacement f64)) -> (vec f64)

  • replace_range ((values (vec f64)) (start i32) (end_exclusive i32) (replacement (vec f64))) -> (vec f64)

  • remove_at ((values (vec f64)) (position i32)) -> (vec f64)

  • remove_range ((values (vec f64)) (start i32) (end_exclusive i32)) -> (vec f64)

std.vec_i32

  • Path: lib/std/vec_i32.slo

  • Tier: beta-supported

  • Exported helper signatures: 39

  • empty () -> (vec i32)

  • append ((values (vec i32)) (value i32)) -> (vec i32)

  • len ((values (vec i32))) -> i32

  • at ((values (vec i32)) (position i32)) -> i32

  • singleton ((value i32)) -> (vec i32)

  • append2 ((values (vec i32)) (first i32) (second i32)) -> (vec i32)

  • append3 ((values (vec i32)) (first i32) (second i32) (third i32)) -> (vec i32)

  • pair ((first i32) (second i32)) -> (vec i32)

  • triple ((first i32) (second i32) (third i32)) -> (vec i32)

  • repeat ((value i32) (count i32)) -> (vec i32)

  • range ((start i32) (end_exclusive i32)) -> (vec i32)

  • range_from_zero ((count i32)) -> (vec i32)

  • is_empty ((values (vec i32))) -> bool

  • index_or ((values (vec i32)) (position i32) (fallback i32)) -> i32

  • first_or ((values (vec i32)) (fallback i32)) -> i32

  • last_or ((values (vec i32)) (fallback i32)) -> i32

  • index_option ((values (vec i32)) (position i32)) -> (option i32)

  • first_option ((values (vec i32))) -> (option i32)

  • last_option ((values (vec i32))) -> (option i32)

  • index_of_option ((values (vec i32)) (target i32)) -> (option i32)

  • last_index_of_option ((values (vec i32)) (target i32)) -> (option i32)

  • count_of ((values (vec i32)) (target i32)) -> i32

  • contains ((values (vec i32)) (target i32)) -> bool

  • sum ((values (vec i32))) -> i32

  • concat ((left (vec i32)) (right (vec i32))) -> (vec i32)

  • take ((values (vec i32)) (count i32)) -> (vec i32)

  • starts_with ((values (vec i32)) (prefix (vec i32))) -> bool

  • without_prefix ((values (vec i32)) (prefix (vec i32))) -> (vec i32)

  • ends_with ((values (vec i32)) (suffix (vec i32))) -> bool

  • without_suffix ((values (vec i32)) (suffix (vec i32))) -> (vec i32)

  • drop ((values (vec i32)) (count i32)) -> (vec i32)

  • reverse ((values (vec i32))) -> (vec i32)

  • subvec ((values (vec i32)) (start i32) (end_exclusive i32)) -> (vec i32)

  • insert_at ((values (vec i32)) (position i32) (value i32)) -> (vec i32)

  • insert_range ((values (vec i32)) (position i32) (inserted (vec i32))) -> (vec i32)

  • replace_at ((values (vec i32)) (position i32) (replacement i32)) -> (vec i32)

  • replace_range ((values (vec i32)) (start i32) (end_exclusive i32) (replacement (vec i32))) -> (vec i32)

  • remove_at ((values (vec i32)) (position i32)) -> (vec i32)

  • remove_range ((values (vec i32)) (start i32) (end_exclusive i32)) -> (vec i32)

std.vec_i64

  • Path: lib/std/vec_i64.slo

  • Tier: beta-supported

  • Exported helper signatures: 36

  • empty () -> (vec i64)

  • append ((values (vec i64)) (value i64)) -> (vec i64)

  • len ((values (vec i64))) -> i32

  • at ((values (vec i64)) (position i32)) -> i64

  • singleton ((value i64)) -> (vec i64)

  • append2 ((values (vec i64)) (first i64) (second i64)) -> (vec i64)

  • append3 ((values (vec i64)) (first i64) (second i64) (third i64)) -> (vec i64)

  • pair ((first i64) (second i64)) -> (vec i64)

  • triple ((first i64) (second i64) (third i64)) -> (vec i64)

  • is_empty ((values (vec i64))) -> bool

  • index_or ((values (vec i64)) (position i32) (fallback i64)) -> i64

  • first_or ((values (vec i64)) (fallback i64)) -> i64

  • last_or ((values (vec i64)) (fallback i64)) -> i64

  • index_option ((values (vec i64)) (position i32)) -> (option i64)

  • first_option ((values (vec i64))) -> (option i64)

  • last_option ((values (vec i64))) -> (option i64)

  • index_of_option ((values (vec i64)) (target i64)) -> (option i32)

  • last_index_of_option ((values (vec i64)) (target i64)) -> (option i32)

  • contains ((values (vec i64)) (target i64)) -> bool

  • count_of ((values (vec i64)) (target i64)) -> i32

  • sum ((values (vec i64))) -> i64

  • concat ((left (vec i64)) (right (vec i64))) -> (vec i64)

  • take ((values (vec i64)) (count i32)) -> (vec i64)

  • starts_with ((values (vec i64)) (prefix (vec i64))) -> bool

  • without_prefix ((values (vec i64)) (prefix (vec i64))) -> (vec i64)

  • ends_with ((values (vec i64)) (suffix (vec i64))) -> bool

  • without_suffix ((values (vec i64)) (suffix (vec i64))) -> (vec i64)

  • drop ((values (vec i64)) (count i32)) -> (vec i64)

  • reverse ((values (vec i64))) -> (vec i64)

  • subvec ((values (vec i64)) (start i32) (end_exclusive i32)) -> (vec i64)

  • insert_at ((values (vec i64)) (position i32) (value i64)) -> (vec i64)

  • insert_range ((values (vec i64)) (position i32) (inserted (vec i64))) -> (vec i64)

  • replace_at ((values (vec i64)) (position i32) (replacement i64)) -> (vec i64)

  • replace_range ((values (vec i64)) (start i32) (end_exclusive i32) (replacement (vec i64))) -> (vec i64)

  • remove_at ((values (vec i64)) (position i32)) -> (vec i64)

  • remove_range ((values (vec i64)) (start i32) (end_exclusive i32)) -> (vec i64)

std.vec_string

  • Path: lib/std/vec_string.slo

  • Tier: beta-supported

  • Exported helper signatures: 35

  • empty () -> (vec string)

  • append ((values (vec string)) (value string)) -> (vec string)

  • len ((values (vec string))) -> i32

  • at ((values (vec string)) (position i32)) -> string

  • singleton ((value string)) -> (vec string)

  • append2 ((values (vec string)) (first string) (second string)) -> (vec string)

  • append3 ((values (vec string)) (first string) (second string) (third string)) -> (vec string)

  • pair ((first string) (second string)) -> (vec string)

  • triple ((first string) (second string) (third string)) -> (vec string)

  • is_empty ((values (vec string))) -> bool

  • index_or ((values (vec string)) (position i32) (fallback string)) -> string

  • first_or ((values (vec string)) (fallback string)) -> string

  • last_or ((values (vec string)) (fallback string)) -> string

  • index_option ((values (vec string)) (position i32)) -> (option string)

  • first_option ((values (vec string))) -> (option string)

  • last_option ((values (vec string))) -> (option string)

  • index_of_option ((values (vec string)) (target string)) -> (option i32)

  • last_index_of_option ((values (vec string)) (target string)) -> (option i32)

  • contains ((values (vec string)) (target string)) -> bool

  • count_of ((values (vec string)) (target string)) -> i32

  • concat ((left (vec string)) (right (vec string))) -> (vec string)

  • take ((values (vec string)) (count i32)) -> (vec string)

  • starts_with ((values (vec string)) (prefix (vec string))) -> bool

  • without_prefix ((values (vec string)) (prefix (vec string))) -> (vec string)

  • ends_with ((values (vec string)) (suffix (vec string))) -> bool

  • without_suffix ((values (vec string)) (suffix (vec string))) -> (vec string)

  • drop ((values (vec string)) (count i32)) -> (vec string)

  • reverse ((values (vec string))) -> (vec string)

  • subvec ((values (vec string)) (start i32) (end_exclusive i32)) -> (vec string)

  • insert_at ((values (vec string)) (position i32) (value string)) -> (vec string)

  • insert_range ((values (vec string)) (position i32) (inserted (vec string))) -> (vec string)

  • replace_at ((values (vec string)) (position i32) (replacement string)) -> (vec string)

  • replace_range ((values (vec string)) (start i32) (end_exclusive i32) (replacement (vec string))) -> (vec string)

  • remove_at ((values (vec string)) (position i32)) -> (vec string)

  • remove_range ((values (vec string)) (start i32) (end_exclusive i32)) -> (vec string)