Csv.needs.go: def of bend-kit-csv@0.3.0.0 Import: import bend-kit-csv@0.3.0.0/csv.bend as Csv Lines 221-241 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=221&end_line=241 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # Writer # ------ # Does a byte from i on need quotes? n counts the bytes left. def needs.go(n: Nat, r: Array & U32, +i: U32) -> Array & Bool: match n: case 0n: (a, c) = r (a, False{}) case 1n+p: (a, +c) = r match c: case 34: (a, True{}) case 44: (a, True{}) case 10: (a, True{}) case 13: (a, True{}) case _: needs.go(p, Bytes.peek(a, (i + 1 : U32)), (i + 1 : U32)) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=peek