Http.cookie.cut.go: def of bend-kit-http@0.38.2.0 Import: import bend-kit-http@0.38.2.0/http.bend as Http Lines 1858-1872 of bend-kit-http@0.38.2.0/http.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-http@0.38.2.0/http.bend&start_line=1858&end_line=1872 import Base # hit: the last char pushed onto acc was c. def cookie.cut.go(s: String, +c: U32, acc: String, hit: Bool) -> String & String & Bool: match s: case SNil{}: match hit: case True{}: cookie.cut.found(take.cut(acc, SNil{})) case False{}: (String.reverse(acc), SNil{}, False{}) case SCon{Chr{+x}, t}: match hit: case True{}: cookie.cut.found(take.cut(acc, SCon{Chr{x}, t})) case False{}: cookie.cut.go(t, c, SCon{Chr{x}, acc}, U32.is_eq(x, c)) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.2.0/http.bend&name=cookie.cut.found https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.2.0/http.bend&name=take.cut