Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.
  • /i is commonly an index-aware collection variant.
  • /raw is 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

FamilyPurpose
Core vectorsget, set!, push!, pop!, length, car, cdr
Functional transformsmap, select, filter, reduce, sort, range
Text and conversionsplit, join, trim, slice, String/*, Integer->String
Data structuresTable/*, Set/*, Heap/*, Que/*, Matrix/*
Numbersdecimal helpers, bit operations, random, BigInt and SignedBigInt
Meta and utilitydates, parsing helpers, test helpers, constants

The following pages cover the most important usage patterns and the complete public library families.