def parse.first

bend-kit-http@0.38.2.0 · http.bend:375

import bend-kit-http@0.38.2.0/http.bend as Http
import 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})

Uses (9)

Used by (2)