Standard library

Standard library index

all top-level functions, records, enums and bindings, including private helpers explicitly labeled on their module pages.

The active full-runtime sidecar is compiler/mayc/native.may; stdlib/native.may is a byte-identical mirror, checked by make check, that the language server and these pages read. prelude.may is auto-loaded; ordinary modules are imported explicitly.

Prefer namespace or selective imports when a helper shares a name with the native library.

Any is the actual declared type in many modules; descriptions state expected runtime values without promising additional static checks.

algo.may — Sorting, searching, grouping and eager list transformations. 14 declarations.

collections.may — List-backed stacks and queues and map-backed sets. 20 declarations.

csv.may — Quoted comma-separated text parsing, serialization and records. 4 declarations.

format.may — Text tables, percentages, durations, byte sizes and ANSI formatting. 10 declarations.

functional.may — Composition, currying, partial application and memoization. 12 declarations.

io.may — Text, line, JSON, CSV and key-value file helpers. 11 declarations.

iter.may — Eager list iteration, scans, windows and keyed reductions. 14 declarations.

math.may — Arithmetic, number theory and geometric helpers. 14 declarations.

native.may — Automatically available full-runtime helpers; a byte-identical mirror of the injected sidecar compiler/mayc/native.may. 119 declarations.

net.may — Synchronous IPv4 TCP/UDP sockets for full Linux x86-64 runtimes. 41 declarations.

path.may — Lexical path operations without filesystem access. 9 declarations.

prelude.may — Automatically loaded small convenience functions in full-runtime builds. 5 declarations.

random.may — Explicit stateful Park–Miller pseudorandom streams. 10 declarations.

result.may — Map-based success/failure values and composition. 10 declarations.

stats.may — Descriptive statistics and simple linear regression. 17 declarations.

string.may — String transformations and simple delimiter helpers. 12 declarations.

test.may — Counting assertions and a final test report. 9 declarations.

ui.may — Native Linux desktop widget trees, themes, antialiased GPU shapes/text, layout, Unicode inputs, focus, scrolling, virtual lists and software PNG snapshots; requires the May UI Sokol adapter. 56 declarations.

validate.may — Input predicates and structured rule/field validation. 11 declarations.