[strings.split]

strings.split is a slot in the strings namespace, in Hyperlambda, the language of Magic Cloud. Splits a string at every occurrence of the separator and returns each segment as an unnamed child node.

  • Value (text), required: Text to split
  • Returns: Returns one child node per split string item

Arguments

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

Argument Type Required Description
unnamed child node string yes Separator to split on.

Guide: How to use [strings.split]

JSON declaration

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

JSON declaration
{
  "name": "strings.split",
  "description": "Splits a string at every occurrence of the separator and returns each segment as an unnamed child node",
  "signature": {
    "input": {
      "kind": "text",
      "description": "Text to split",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "children": [
      {
        "type": "string",
        "kind": "string-separator",
        "description": "Separator to split on",
        "required": true,
        "mode": "ExecutableLambda",
        "cardinality": "ExactlyOne",
        "role": "SourceExpression",
        "evaluation": "EvalSelf",
        "projection": "Value"
      }
    ],
    "output": {
      "mode": "Lambda",
      "kind": "string-list",
      "element-kind": "text",
      "description": "Returns one child node per split string item"
    }
  }
}

← strings.replace-not-of all strings.* slots strings.starts-with →