def climb
import ezx@1.11.0.0/src/ez/target.bend as Targetimport Base
217# whether any component is a climb
218def climb(ps: List<&2, String>) -> Bool:
219 match ps:
220 case []:
221 False{}
222 case +h <> t:
223 climb.step(String.eq(h, ".."), _u => climb(t))