def take.back
import bend-kit-url@0.4.1.0/url.bend as Urlimport Base
285def take.back(acc: String, rest: String) -> String & String:
286 match acc:
287 case SNil{}:
288 (SNil{}, rest)
289 case SCon{x, a2}:
290 (String.reverse(a2), SCon{x, rest})