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

Quick reference

Bind and define

(let name value)
(mut name value)
(alter! name value)
(letrec name (lambda (args) body))
(sig name Type)
(enum Name [T K ...] Variant... (PayloadVariant field Type ...))
(record Name [T K ...] field Type ...)

Control

(if test yes no)
(cond test value ... default)
(when test body...)
(unless test body...)
(while test body...)
(loop i test body...)
(block body...)
(do body...)

Vectors and tuples

[a b c]
{a b}
(length xs)
(get i xs)
(set! i value xs)
(push! value xs)
(pop! xs)
(empty! xs)
(capacity! n xs)

Functions and composition

(lambda (x) body)
(lambda (x y) body)
(|> value (map f) sum)
(<| value f g)
(comp f g h)
(apply f arg...)

Static inspection

que file.que --debug
que file.que --opt
que file.que --emit types
que explain file.que --opt
que fmt file.que
que --lib types 'pattern*'

For the complete current library surface, que --lib types is the reference.