Skip to main content

Module core

Module core 

Source
Expand description

The core module — 4 functions.

FunctionSignatureDescription
core.log(value: any) -> nilDebug logging (no-op in production)
core.assert(condition: bool, message?: string) -> nilTrap if false
core.type_of(value: any) -> stringReturns type name
core.capability(name: string) -> boolCheck capability availability

Structs§

CoreModule
The core stdlib module.