fn(text$0, separator$1, index$2, current$3, acc$4) =>
match @core.less-than(left: $2, right: @core.string-length(value: $0)) {
false =>
@core.list-append(list: $4, item: $3),
true =>
let character$5 = @core.string-slice(value: $0, start: $2, end: @core.plus(left: $2, right: 1));
match @core.equal(left: $5, right: $1) {
true =>
@definy.string-split(
text: $0,
separator: $1,
index: @core.plus(left: $2, right: 1),
current: "",
acc: @core.list-append(list: $4, item: $3)
),
false =>
@definy.string-split(
text: $0,
separator: $1,
index: @core.plus(left: $2, right: 1),
current: @core.string-concat(left: $3, right: $5),
acc: $4
)
}
}