Dictionary
A mutable Dictionary<K,V> with invariant key/value types.
Declaration
Section titled “Declaration”Choose the type in a Variable/parameter/field type picker. Supply the exact element/key/value/class/Target declaration when prompted. Use the nullable flag only when absence is part of the intended model.
Example
Section titled “Example”Dictionary<String,Number>Keys are non-null primitive or identity types. Lists/dictionaries cannot be keys. Check for missing keys and match exact declarations.
Compatibility
Section titled “Compatibility”Required inputs must be assigned and type-compatible. Nullable values require compatible nullable inputs or coalescing. Collection declarations remain invariant; native Targets and custom classes follow their supported inheritance rules. Final controls a binding, not deep immutability.
Variables · Arguments · Collections · Classes · Expressions