[strings.concat]

strings.concat is a slot in the strings namespace, in Hyperlambda, the language of Magic Cloud. Concatenates strings.

  • Value (string-list), optional: Expression yielding the text segments to concatenate when not supplied as child nodes
  • Returns: Resolves to the concatenated string

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
unnamed child node string no Text segment to concatenate. Can be repeated.

Constraints

  • ExactlyOneOf: Provide either expression input or child text segments ([input], [.])

Guide: How to use [strings.concat]

JSON declaration

This is the complete declaration of strings.concat, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "strings.concat",
  "description": "Concatenates strings",
  "signature": {
    "input": {
      "kind": "string-list",
      "description": "Expression yielding the text segments to concatenate when not supplied as child nodes",
      "required": false,
      "mode": "Expression"
    },
    "children": [
      {
        "type": "string",
        "kind": "text",
        "description": "Text segment to concatenate",
        "required": false,
        "mode": "ExecutableLambda",
        "cardinality": "ZeroOrMore",
        "role": "SourceExpression",
        "evaluation": "EvalSelf",
        "projection": "Value"
      }
    ],
    "constraints": [
      {
        "description": "Provide either expression input or child text segments",
        "values": [
          "input",
          "."
        ],
        "kind": "ExactlyOneOf"
      }
    ],
    "output": {
      "mode": "Value",
      "kind": "text",
      "description": "Resolves to the concatenated string"
    }
  }
}

← strings.capitalize all strings.* slots strings.contains →