put-absent
record →
put-absent(
...assignments: entry
) → record
Assigns statically named fields only when they are absent; a present field containing null remains unchanged.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
assignments | entry | Variadic (one or more) | One or more named assignments applied only to fields that are absent. |
Argument evaluation
assignments: Each assignment uses the record entering this call and is evaluated only if its target field is absent.
Examples
{name := "Alice"} | put-absent(age := 42) → {name := "Alice", age := 42}
Kind: Function
Scope: record
Aliases: None