def pos_of

shake@0.7.0.0 · src/cli.bend:404

import shake@0.7.0.0/src/cli.bend as Cli
import Base

404# the positionals of a spec, in order
405def pos_of(args: List<&2, Arg>) -> List<&2, Arg>:
406  match args:
407    case Nil{}:
408      Nil{}
409    case Con{+h, t}:
410      pos_of.put(pos.is(h), h, pos_of(t))

Uses (4)

Used by (4)