Optional
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.
Optional(param, default): a parameter of a function literal with a default value (Epsil surface syntax: (x, k = 2) => x * k). A call that leaves out the argument of the parameter receives the default. param is a symbol or Typed(symbol, type); default is a number, a string, True, False, a symbol, [] or {}. A parse-level carrier, like Spread: only the parameter list of a Function literal reads it. Anywhere else it is the unexpected-argument error.
Optional(any, any) -> nothingas compute-engine declares itTyped signatures
| Type | Package | Applies |
|---|---|---|
(any, any) -> nothing | compute-engine | always |