[compose]
compose is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Builds an expression at runtime by concatenating the evaluated child node values; useful for dynamic node selection.
- Returns: Resolves to the composed expression
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
| any node name | string | yes | Expression segment evaluated and joined into the resulting expression. Can be repeated. |
Guide: How to use [compose]
JSON declaration
This is the complete declaration of compose, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "compose",
"description": "Builds an expression at runtime by concatenating the evaluated child node values; useful for dynamic node selection",
"signature": {
"children": {
"*": {
"type": "string",
"kind": "expression-segment",
"description": "Expression segment evaluated and joined into the resulting expression",
"required": true,
"mode": "ExecutableLambda",
"cardinality": "OneOrMore",
"role": "SourceExpression",
"evaluation": "EvalSelf",
"projection": "Value"
}
},
"output": {
"mode": "Value",
"kind": "expression",
"description": "Resolves to the composed expression"
}
}
}
← case |
all core slots | context → |