[strings.trim-end]
strings.trim-end is a slot in the strings namespace, in Hyperlambda, the language of Magic Cloud. Trims characters from the end of the specified string.
- Value (
text), required: Text to trim - Returns: Resolves to the string with trailing 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-end]
JSON declaration
This is the complete declaration of strings.trim-end, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "strings.trim-end",
"description": "Trims characters from the end 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 trailing characters removed"
}
}
}
← strings.trim |
all strings.* slots |
strings.trim-start → |