def dir.go

bend-kit-url@0.4.1.0 · url.bend:488

import bend-kit-url@0.4.1.0/url.bend as Url
import Base

488def dir.go(s: String, +acc: String, last: String) -> String:
489  match s:
490    case SNil{}:
491      String.reverse(last)
492    case SCon{Chr{+c}, t}:
493      +acc2 = {SCon{Chr{c}, acc} : String}
494      dir.go(t, acc2, Bool.pick(String, U32.is_eq(c, 47), acc2, last))

Uses (5)

Used by (1)