Redirect.redirect.dots.one: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/redirect.bend as Redirect Lines 65-73 of emerging-ezhttp@0.21.0.0/src/redirect.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/redirect.bend&start_line=65&end_line=73 import Base # one segment: `.` is dropped, `..` drops the last kept, any other is kept def redirect.dots.one(dot: Bool, up: Bool, last: Bool, s: String, out: List<&2, String>, rest: List<&2, String> -> List<&2, String>) -> List<&2, String>: match dot: case True{}: rest(redirect.dots.end(last, out)) case False{}: redirect.dots.up(up, last, s, out, rest) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/redirect.bend&name=redirect.dots.end https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/redirect.bend&name=redirect.dots.up