def ups.go
import bolt@1.27.0.0/src/rules.bend as Rulesimport Base
123def ups.go(rs: List<&2, String>) -> List<&2, String>:
124 match rs:
125 case Nil{}:
126 Nil{}
127 case Con{s, +rest}:
128 (String.join(List.reverse(&2, String, s <> rest), "/") ++ "/") <> ups.go(rest)