definy.string-trim-start-index
- description
- The index of the first character from index that is not a space (definy.is-space)
- type
Fn(value: String, index: Number) -> Number
- expression
fn(value$0, index$1) => match @core.less-than-or-equal(left: @core.string-length(value: $0), right: $1) { true => $1, false => match @definy.is-space(character: @core.string-slice(value: $0, start: $1, end: @core.plus(left: $1, right: 1))) { true => @definy.string-trim-start-index(value: $0, index: @core.plus(left: $1, right: 1)), false => $1 } }
- visibility
- public
definy.string-trim-start-index (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo) id: NiyBTujejBQmLcROijJZiHu1cXo9ntaCwSG9zUcgt8k content hash: -H9y0imDEl1cBbIccVHplsheRBPI9lMnRRBAfB9qTs8