(rontolisp) docs

Reference

One page per name the Clojure front end provides: every form, verb and interop entry of the experimental subset, grouped by area. Each name in a table links to its own page, which gives the signature, the behavior, the deviation from the oracle where there is one and a worked example. The refused forms are not listed here -- Semantics has them.

PageContents
Syntax and definitiondef/defn/fn, binding, conditionals, quote, comment, declare
Threading->, ->>, as->, doto and the conditional threaders
SeqsThe seq family, lazy where taken and strict otherwise
Iterationdoseq/dotimes/for, dorun/doall and run!
Maps, sets and vectorsThe persistent collection verbs over equal hash tables
Higher-order functionscomp/partial/complement/constantly/identity/memoize/trampoline, juxt/fnil/every-pred/some-fn/min-key/max-key
Numbers and predicatesArithmetic, comparison and the type predicates
Type and collection predicatesseq?/map?/keyword?/int? and the other kind tests, identical?, distinct?, extends?
Instants and UUIDsThe #inst and #uuid values: inst-ms, random-uuid, parse-uuid
Stateatom/deref/swap! and the volatile trio
Multimethods and hierarchiesdefmulti/defmethod, derive and the hierarchy reads
Protocols, records and typesdefprotocol/defrecord/deftype, reify, the extend family and satisfies?
Errorstry/catch/finally, throw, ex-info and its readers
Namespacesns and the top-level require/use/import
Names and keywordsname/namespace/keyword/symbol
(clojure.string)The string library, plus the core subs
(clojure.set)The relational set library: union/intersection/difference, select/project/rename, index/join, subset?/superset?
clojure.dataRecursive comparison: diff answering what only each side holds and what both hold
clojure.datafyValues as data and navigation from data: datafy/nav over the clojure.core.protocols protocols, and CollReduce/IKVReduce, which reduce/reduce-kv consult
clojure.core.reducersReducers and folders: map/filter/mapcat/take... as reducible views, fold in parts, foldcat/cat/append!, monoid
clojure.ednReading EDN data: read-string/read with :eof, :readers and :default
clojure.instantReading RFC 3339 timestamps: parse-timestamp, validated, read-instant-date/-timestamp/-calendar
clojure.java.ioFiles, URLs and the streams over them: file, reader/writer, input-stream/output-stream, copy, resource, the Coercions/IOFactory protocols, and http: URLs read through rontolisp:fetch
clojure.mathFunctions over doubles that answer the same bits on every backend, rounding and the neighbors of a double, and long arithmetic that refuses to overflow
clojure.pprintPretty printing: pprint/write within a right margin, print-table, code-dispatch for code, and the dispatch a program extends or replaces
clojure.reflectA host class's bases, flags and members as data: type-reflect/reflect, the Constructor/Method/Field records, typename
clojure.stacktracePrinting throwables and their causes: root-cause, print-throwable, print-stack-trace, print-cause-trace
clojure.templateExpression templates: apply-template, do-template
clojure.walkGeneric traversal of nested data: walk/postwalk/prewalk, the -replace pair, keywordize-keys/stringify-keys
clojure.zipFunctional tree editing with zippers: vector-zip/seq-zip/xml-zip, moves, edits and the depth-first walk
Regular expressionsre-find/re-seq/re-matches, re-matcher/re-groups, re-pattern and pattern split/replace
Ring adapterring.adapter.rontolisp/run-server: a Ring handler served on every transport
Ring utilitiesThe built-in ring.util.* and ring.middleware.* namespaces: response builders, URL and form coding, parameter middleware
HTTP client (rontolisp.http-client)request and get/post/put/delete/head/patch with babashka.http-client's API, over rontolisp:fetch on every transport
WASM host functions (rontolisp.wasm)defimport/export: a host function a module calls, a function the host calls
WIT contracts (rontolisp.wit)import/export/provide: a WIT interface called, a WIT world implemented
Java interop., .., construction, memfn, proxy
Transducerstransduce/eduction/sequence/completing, reduced and its companions, cat, and the one-argument arities of the seq verbs
IOspit/slurp/line-seq/file-seq, clojure.java.io/reader and format
Tests (clojure.test)deftest/is/are/testing and the run-tests summary runner
Macrosdefmacro, syntax-quote, gensym, macroexpand-1, macroexpand
Code walking (riddley)The built-in riddley.walk and riddley.compiler: macroexpand-all and walk-exprs with the locals in reach at each macro call