def undash

ezx@1.11.0.0 · src/share/args.bend:88

import ezx@1.11.0.0/src/share/args.bend as Args
import Base

88# a leading `--` is the separator, not a word the program was given
89def undash(xs: List<&2, String>) -> List<&2, String>:
90  match xs:
91    case Nil{}:
92      Nil{}
93    case Con{+h, +t}:
94      Bool.pick(List<&2, String>, String.eq(h, "--"), t, h <> t)

Uses (4)

Used by (1)