def tail
import ezx@1.11.0.0/src/pkg/path.bend as Pathimport Base
146# the last `n` components of a path
147def tail(path: String, count: Nat) -> String:
148 String.join(List.reverse(&2, String,
149 List.take(&2, String, List.reverse(&2, String, String.split(path, '/')), count)), "/")