def parse.first
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
375def parse.first(s: String, acc: String) -> String & String:
376 match s:
377 case SNil{}:
378 (String.reverse(acc), SNil{})
379 case SCon{Chr{10}, t}:
380 (String.reverse(acc), t)
381 case SCon{c, t}:
382 parse.first(t, SCon{c, acc})