[strings.builder]
strings.builder is a slot in the strings namespace, in Hyperlambda, the language of Magic Cloud. Creates a string builder scope for [strings.builder.append].
- Returns: Resolves to the text appended inside the builder scope
- Scope: provides
strings.builder- Creates a string builder scope for [strings.builder.append]
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
| any node name | lambda | no | Executable child slot evaluated while the StringBuilder is scoped; use [strings.builder.append] to append text. Can be repeated. |
Guide: How to use [strings.builder]
JSON declaration
This is the complete declaration of strings.builder, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "strings.builder",
"description": "Creates a string builder scope for [strings.builder.append]",
"signature": {
"children": {
"*": {
"type": "lambda",
"description": "Executable child slot evaluated while the StringBuilder is scoped; use [strings.builder.append] to append text",
"required": false,
"mode": "ExecutableLambda",
"cardinality": "ZeroOrMore",
"role": "ExecutableBody",
"evaluation": "EvalSelf",
"projection": "Self"
}
},
"scope": {
"provides": "strings.builder",
"description": "Creates a string builder scope for [strings.builder.append]"
},
"output": {
"mode": "Value",
"kind": "text",
"description": "Resolves to the text appended inside the builder scope"
}
}
}
all strings.* slots |
strings.builder.append → |