aboutsummaryrefslogtreecommitdiff

View this file with results and syntax highlighting here.

Colon (:)

β†’full documentation

Placed at the end of a block header. A header has syntax that matches the way the block is called. It indicates the block type, and number and structure of inputs.

    "xy" {aβ€Ώb _op c: b} ∞

Multiple bodies are searched in order to find one with a matching header.

    F ← {m Fn n: m+Fn n;  π•Šn: 2Γ—n;  π•ŠβΌπ•©: 𝕩÷2}

    F 3      # π•Šn

    F⁼ 6     # π•ŠβΌπ•©

    10 F 3   # m Fn n