Standard library overview
The active library is implemented in the repository’s lisp/ directory and
is bundled into normal compilation. It is deliberately ordinary Calque source
where possible: the compiler recognizes a small set of primitive operations,
while functional helpers, collection APIs, loop conveniences, and algorithms
are written in the language itself.
Do not guess a signature
The installed compiler can query the library it actually bundles:
que --lib names 'Table/*'
que --lib types 'map*'
que --lib source Table/update!
This is the authoritative API reference between releases. Start with Functions by example for copyable everyday use, then use the complete library index and the live query when you need a specialist or implementation-level name.
Naming and argument order
!marks a mutating or effectful operation.?marks a predicate./iis commonly an index-aware collection variant./rawis an implementation-level helper; prefer its public counterpart.- Namespace-like names use
/:Vector/sort!,String/contains?,Table/update!. - Transform-style functions usually take data last so they work with
|>. - Collection operations, including mutating ones, normally take their collection last.
(|> xs
(map normalize)
(select valid?)
sum)
(Table/set! key value table)
Main families
| Family | Purpose |
|---|---|
| Core vectors | get, set!, push!, pop!, length, car, cdr |
| Functional transforms | map, select, filter, reduce, sort, range |
| Text and conversion | split, join, trim, slice, String/*, Integer->String |
| Data structures | Table/*, Set/*, Heap/*, Que/*, Matrix/* |
| Numbers | decimal helpers, bit operations, random, BigInt and SignedBigInt |
| Meta and utility | dates, parsing helpers, test helpers, constants |
The following pages cover the most important usage patterns and the complete public library families.