RecurLoop/ Documentation
RecurLoop/APIv0.2.12

const

Create a constant.

recurloop
const name = expression

Defines an immutable runtime value. In an fn body, an optional :type selects the native type.

Example

recurloop
const answer = 6 * 7

Syntax

recurloop
<name:id> [":" <type:qualified-id>] "=" <value:expr>

Example

recurloop
const limit = 42

Arguments

  • —
  • : —
  • type — Optional native type.
  • value — Constant expression; the value cannot be reassigned.