Standard Library

Runtime functions loaded at startup after primitives.

Arithmetic

+ src
error

Exported functions: - Higher-order: map, filter, fold, reduce, keep - Combinators: identity, complement, constantly, compose, comp, partial, juxt - Predicates: all?, any?, some, none? - Search: find, find-index, index-of, last-index-of - Transformation: flatten, group-by, partition, take-while, drop-while - Struct operations: merge - Stream sinks: stream/for-each, stream/fold, stream/collect, stream/into-array - Stream transforms: stream/map, stream/filter, stream/take, stream/drop, stream/concat, stream/zip, stream/pipe - Stream ports: port/lines, port/chunks, port/writer - Subprocess convenience: subprocess/system

- src
error
* src
error
/ src
error
rem src
error
mod src
error

Comparison

check-comparable src
error
< src
error
> src
error
<= src
error
>= src
error

Logic and pairs

not src
error
pair src
silent

Higher-order functions

map src
debugerrorexecffigpuhaltioos-signalyield
filter src
debugerrorexecffigpuhaltioos-signalyield
fold src
error

Functional combinators

identity src
silent
complement src
silent
constantly src
silent
compose src
error
partial src
silent
juxt src
silent

Collection search & predicates

all? src
debugerrorexecffigpuhaltioos-signalyield
any? src
erroryield
find src
erroryield
find-index src
debugerrorexecffigpuhaltioos-signalyield
count src
debugerrorexecffigpuhaltioos-signalyield
nth src
error

Collection transforms

zip src
debugerrorexecffigpuhaltioos-signalyield
flatten src
erroryield
take-while src
debugerrorexecffigpuhaltioos-signalyield
drop-while src
debugerrorexecffigpuhaltioos-signalyield
distinct src
erroryield
frequencies src
erroryield
mapcat src
debugerrorexecffigpuhaltioos-signalyield
group-by src
erroryield
map-indexed src
debugerrorexecffigpuhaltioos-signalyield
partition src
error
interpose src
error
min-key src
debugerrorexecffigpuhaltioos-signalyield
max-key src
debugerrorexecffigpuhaltioos-signalyield
memoize src
silent
sort-by src
debugerrorexecffigpuhaltioos-signalyield
sort-with src
debugerrorexecffigpuhaltioos-signalyield

Time utilities

time/stopwatch src
error
time/elapsed src
error

VM query wrappers

call-count src
error
global? src
error
fiber/self src
error
fiber/new? src
error
fiber/alive? src
error
fiber/paused? src
error
fiber/dead? src
error
fiber/error? src
error
fiber/done? src
error

Control flow graph rendering

fn/cfg src
erroryield
fn/cfg-label src
error
fn/cfg-dot src
erroryield
fn/cfg-mermaid src
erroryield

Struct operations

merge src
erroryield

Stream combinators

stream/for-each src
erroryield
stream/fold src
erroryield
stream/collect src
erroryield
stream/into-array src
erroryield
stream/map src
error
stream/filter src
error
stream/take src
error
stream/drop src
error
stream/concat src
error
stream/zip src
error
stream/pipe src
error
port/lines src
error
port/chunks src
error
port/writer src
error

Output

print src
errorioyield
println src
errorioyield
eprint src
errorioyield
eprintln src
errorioyield

Spawn

ev/spawn src
debugerrorexecffigpuhaltioos-signalyield

Async scheduler

make-async-scheduler src
error
ev/shutdown src
debugerrorexecffigpuhaltioos-signalyield
ev/step src
debugerrorexecffigpuhaltioos-signalyield
ev/with-scheduler src
debugerrorexecffigpuhaltioos-signalyield
ev/run src
debugerrorexecffigpuhaltioos-signalyield

Structured concurrency primitives

emit-wait src
errorwait
ev/futex-wait src
errorwait
ev/futex-wake src
errorwait
ev/join src
errorwaityield
ev/join-protected src
errorwaityield
ev/abort src
errorwait
ev/as-completed src
erroryield
ev/select src
debugerrorexecffigpuhaltioos-signalyield
ev/race src
debugerrorexecffigpuhaltioos-signalwaityield
ev/timeout src
debugerrorexecffigpuhaltioos-signalwaityield
ev/scope src
debugerrorexecffigpuhaltioos-signalwaityield
ev/map src
debugerrorexecffigpuhaltioos-signalwaityield
ev/map-limited src
debugerrorexecffigpuhaltioos-signalyield

Channel select

chan/select src
errorioyield
inc src
error
dec src
error
any? src
erroryield
all? src
debugerrorexecffigpuhaltioos-signalyield
find src
erroryield

Subprocess convenience

subprocess/system src
errorexecioyield

FFI helpers

ffi/pin src
errorffi

Collection helpers

from-pairs src
erroryield
get-in src
error
put-in src
error
update-in src
error
update src
error
sum src
error
product src
error