[unwrap]
unwrap is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Forward-evaluates expression values on the selected nodes, replacing them with their resolved values; commonly used before [signal] or [add].
- Value (
node-list,single-object), required: Expression selecting the node or nodes whose expressions should be unwrapped
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
[apply-lists] |
bool | no | Whether list results should be applied while unwrapping. Default: false. |
Guide: How to use [unwrap]
JSON declaration
This is the complete declaration of unwrap, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "unwrap",
"description": "Forward-evaluates expression values on the selected nodes, replacing them with their resolved values; commonly used before [signal] or [add]",
"signature": {
"input": {
"kind": "node-list,single-object",
"description": "Expression selecting the node or nodes whose expressions should be unwrapped",
"required": true,
"mode": "Expression"
},
"children": {
"apply-lists": {
"type": "bool",
"description": "Whether list results should be applied while unwrapping",
"required": false,
"mode": "ValueOrExpression",
"cardinality": "ZeroOrOne",
"default": "false",
"role": "Option",
"projection": "Value"
}
}
}
}
← types |
all core slots | version → |