def dir.go
import bend-net-url@0.4.0.0/url.bend as Urlimport Base
438def dir.go(s: String, +acc: String, last: String) -> String:
439 match s:
440 case SNil{}:
441 String.reverse(last)
442 case SCon{Chr{+c}, t}:
443 +acc2 = {SCon{Chr{c}, acc} : String}
444 dir.go(t, acc2, Bool.pick(String, U32.is_eq(c, 47), acc2, last))