AutolangDocs

Standard Library

The Autolang Standard Library provides a deterministic, resource-bounded set of capabilities. Core collections and primitives are available globally without import. Specialized modules for serialization, network I/O, cryptography, and dates are loaded on demand via @import.

Core Auto-Imported Types & Collections

The core types below are always in scope across all files. No import directive is required.

Global Functions

Function SignatureDescription
println(val: Any?)Outputs value followed by a newline.
print(val: Any?)Outputs value without a newline.
assert(condition: Bool, message: String = "")Validates invariants, throwing an Exception on failure.
minOf(a, b) / maxOf(a, b) / clamp(v, min, max)Numeric bounds and clamping functions.
require(condition) / check(condition)Argument and state verification with clean error propagation.
measureTimeMillis(block: () -> Void): IntMeasures the elapsed execution time of a closure in milliseconds.
sleep(milliseconds: Int)Pauses execution for the specified duration.

Standard Modules (Import Required)

Import specialized capabilities using @import("std/...") at the top of the file: