Version: dev

expand

Stable function · Expressions

Tier: stable · Kind: function · Topic: Expressions

JuliaTypeScriptPythonRustGo
not exportednot exportedExpandnot exportedExpand

Note: spelling differs from the §2 rule: python=Expand (expected expand)

Julia

Julia does not export this function.

TypeScript

TypeScript does not export this function.

Python

Expand(loaded: Any) -> Any

Public alias for expand_document using the spec’s spelling (esm-spec §9.6.4 rule 2). Expand ∘ load reproduces the Option-A form.

Source

Rust

Rust does not export this function.

Go

func Expand(view map[string]any) map[string]any

Expand fully expands every surviving apply_expression_template reference in a loaded document by pure substitution to the acyclic fixpoint (esm-spec §9.6.4 rule 2), producing the Option-A image. Deterministic (the DAG is acyclic and substitution confluent) and NON-DESTRUCTIVE — view is deep copied first. Public alias mirroring the Julia Expand.

Source · Go docs