Redirect.redirect.dots.up: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/redirect.bend as Redirect Lines 56-63 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=56&end_line=63 import Base # a segment that is not `.`: `..` drops the last kept, any other is kept def redirect.dots.up(up: Bool, last: Bool, s: String, out: List<&2, String>, rest: List<&2, String> -> List<&2, String>) -> List<&2, String>: match up: case True{}: rest(redirect.dots.end(last, redirect.pop(out))) case False{}: rest(s <> out) 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.pop