[strings.capitalize]

strings.capitalize is a slot in the strings namespace, in Hyperlambda, the language of Magic Cloud. Returns the input with its first character upper-cased; remainder is left untouched.

  • Value (text), required: Text to capitalize
  • Returns: Resolves to the capitalized string

Guide

How to use strings.capitalize

JSON declaration

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

JSON declaration
{
  "name": "strings.capitalize",
  "description": "Returns the input with its first character upper-cased; remainder is left untouched",
  "signature": {
    "input": {
      "kind": "text",
      "description": "Text to capitalize",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "output": {
      "mode": "Value",
      "kind": "text",
      "description": "Resolves to the capitalized string"
    }
  }
}

← strings.byte-count all strings.* slots strings.concat →