def tail

ezx@1.11.0.0 · src/pkg/path.bend:146

import ezx@1.11.0.0/src/pkg/path.bend as Path
import 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)), "/")

Uses (7)

Used by (1)