Skip to content

Match ​

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand. No examples yet — the crosswalk is the reason it has a page.

Structural pattern match. Match(subject, MatchCase(pattern, body), …) evaluates subject once, then selects the first case whose pattern matches (structurally, isSame-like) and whose guard holds, applying its body to the captured values. Unlike Which, Match always decides: a symbolic subject that is not structurally a case still falls through to a wildcard case. No matching case yields Error("match-no-case", subject).

Match(expression, expression+) -> unknownas compute-engine declares it
Typed signatures
TypePackageApplies
(expression, expression+) -> unknowncompute-enginealways

Domain: Compute engine

About