[strings.trim-start]

strings.trim-start is a slot in the strings namespace, in Hyperlambda, the language of Magic Cloud. Trims characters from the start of the specified string.

  • Value (text), required: Text to trim
  • Returns: Resolves to the string with leading characters removed

Arguments

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

Argument Type Required Description
unnamed child node string no Optional characters to trim.

Guide: How to use [strings.trim-start]

JSON declaration

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

JSON declaration
{
  "name": "strings.trim-start",
  "description": "Trims characters from the start of the specified string",
  "signature": {
    "input": {
      "kind": "text",
      "description": "Text to trim",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "children": [
      {
        "type": "string",
        "kind": "trim-characters",
        "description": "Optional characters to trim",
        "required": false,
        "mode": "ExecutableLambda",
        "cardinality": "ZeroOrOne",
        "role": "SourceExpression",
        "evaluation": "EvalSelf",
        "projection": "Value"
      }
    ],
    "output": {
      "mode": "Value",
      "kind": "text",
      "description": "Resolves to the string with leading characters removed"
    }
  }
}

← strings.trim-end all strings.* slots strings.url-decode →