def comp_of

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

import ezx@1.11.0.0/src/pkg/path.bend as Path
import Base

18# a component classified. `+c` because it is both asked about and kept.
19def comp_of(+part: String) -> Comp:
20  Bool.pick(Comp, Bool.or(String.is_empty(part), String.eq(part, ".")), CSkip{},
21    Bool.pick(Comp, String.eq(part, ".."), CUp{}, CName{part}))

Uses (6)

Used by (1)