Reference

Functions

Functions are first-class values used for reusable logic and composition. Example let sum = fn(n1, n2) { return n1 + n2; }; sum(10, 20); Notes Any change in closure capture or stack handling should trigger a review of this page and the runtime reference.

Source repo
aoiflux/mutant
Source path
docs/BYTECODE_IR.md
Last reviewed
2026-07-03
Freshness tier
high

Functions are first-class values used for reusable logic and composition.

Example

let sum = fn(n1, n2) {
  return n1 + n2;
};

sum(10, 20);

Notes

Any change in closure capture or stack handling should trigger a review of this page and the runtime reference.