Standard library
The standard library is ordinary Dune loaded from .dn files. Each page below is generated from that module's source doc-comments.
array— Generic helpers and higher-order pipelines for arrays.assert— Assertion helpers for tests.autograd— Scalar reverse-mode automatic differentiation.canvas— Deterministic SVG canvas and immediate-mode GUI widgets.cli— Command-line argument parsing and help output.collections— Shared collection utilities.csv— CSV parsing and numeric-matrix I/O.dict— A hash-map style dictionary built in Dune.display— TheDisplaycontract andshowhelper.fmt— String formatting with{}placeholders.fs— File-system access (read, write, list).io— Standard input/output: print, read a line, and flush streams.log— Levelled diagnostics with stderr output and filtering.math— Numeric constants and generic math functions.matrix— A small NumPy-style foundation: vectors and matrices.maybe— The optionalMaybe<T>choice and helpers.outcome— The result-styleOutcome<T, E>choice and helpers.plot— Deterministic SVG/HTML chart rendering.process— Process access: arguments and environment.random— A small deterministic pseudo-random generator.regex— Safe ASCII regular expressions for validation and text cleanup.runtime— Runtime helpers such aspanic.set— A hash-set built in Dune.stats— Descriptive statistics, relationships, models, histograms, and probability helpers.text— Text and glyph helpers.