def parse.first_req

shake@0.7.0.0 · src/cli.bend:1085

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

1085# the first leftover required positional
1086def parse.first_req(pos: List<&2, Arg>) -> Maybe<&2, String>:
1087  match pos:
1088    case Nil{}:
1089      None{}
1090    case Con{+h, t}:
1091      parse.first_req.at(parse.first_req.skip(rest.is(h), h), parse.first_req(t))

Uses (7)

Used by (1)