Http.cut.go: def of gralha-http-core@0.1.0.0 Import: import gralha-http-core@0.1.0.0/http.bend as Http Lines 17-25 of gralha-http-core@0.1.0.0/http.bend: https://jend.leeeet.dev/read.txt?path=gralha-http-core@0.1.0.0/http.bend&start_line=17&end_line=25 import Base # The text before the first sep and the text after it, or None without sep. def cut.go(s: String, +sep: String, +acc: String) -> Maybe<&1, String & String>: match s: case SNil{}: None{} case SCon{+h, +t}: when(Maybe<&1, String & String>, String.starts_with(SCon{h, t}, sep), _ => Some{(String.reverse(acc), String.drop(SCon{h, t}, String.length(sep)))}, _ => cut.go(t, sep, SCon{h, acc})) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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.drop https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.starts_with https://jend.leeeet.dev/definition.txt?path=gralha-http-core@0.1.0.0/http.bend&name=when