Skip to main content

Built-in functions

Built-in functions are provided by the compiler and need no module prefix. They fall into four groups:

PageFunctions
Geometryrect, crect, polygon, path, text
Constraintsfloat, eq, dimension
Hierarchyinst, bbox
Collectionslist, cons, head, tail, range_full

Functions written in Argon itself live under std::; see the standard library.

Types

CategoryTypes
ScalarsFloat, Int, Bool, String, Any, ()
GeometryRect, Polygon, Path, Point
HierarchyCell, Inst
Collections[T], (A, B)

Signature notation

  • Arguments before the keyword list are positional and required.
  • name? is an optional keyword argument.
  • T is a type parameter inferred from the arguments.
  • Initial values end in i, such as x0i or widthi.
  • Unless stated otherwise, coordinates and dimensions are Float.