Explorer

core.string-split-from

description
core.string-split from the byte index start
type
Fn(text: String, separator: String, start: Number, acc: List<String>) -> List<String>
expression
fn(text$0, separator$1, start$2, acc$3) =>
  let index$4 = @core.string-index-of(text: $0, target: $1, start: $2);
  match @core.less-than(left: $4, right: 0) {
    true =>
      @core.list-append(list: $3, item: @core.string-slice(value: $0, start: $2, end: @core.string-length(value: $0))),
    false =>
      @core.string-split-from(
        text: $0,
        separator: $1,
        start: @core.plus(left: $4, right: @core.string-length(value: $1)),
        acc: @core.list-append(list: $3, item: @core.string-slice(value: $0, start: $2, end: $4))
      )
  }
visibility
public
core.string-split-from (project definy, branch quote-encoded-parts, snapshot LbKb9vIRs5vdtsu6TiOqZ_NMUZJ6k1s6WlbZOc6x3-I)
id: vXsR9LuJ67NFE7MAuzuhokpQ1yYdCspJI6eO7eIDf_k
content hash: rNi54KX4HKia56T9uiky5wnrvP0AaLXE68sky7LgmhM