Csv.cut.go: def of bend-kit-csv@0.3.0.0 Import: import bend-kit-csv@0.3.0.0/csv.bend as Csv Lines 164-172 of bend-kit-csv@0.3.0.0/csv.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-csv@0.3.0.0/csv.bend&start_line=164&end_line=172 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # Spans latest first give fields in order. def cut.go(sp: List<&2, Span>, r: Array & List<&1, Bytes.Bytes>) -> Array & List<&1, Bytes.Bytes>: match sp: case Nil{}: r case Con{Span{+s, +e, +esc}, t}: (a, acc) = r +m = (e - s : U32) cut.go(t, cut.fin(m, esc, Bytes.copy(m, a, Bytes.alloc(m), s, 0), acc)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=alloc https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=copy https://jend.leeeet.dev/definition.txt?path=bend-kit-csv@0.3.0.0/csv.bend&name=Span https://jend.leeeet.dev/definition.txt?path=bend-kit-csv@0.3.0.0/csv.bend&name=cut.fin