def completing

cli@0.2.0.0 · cli.bend:6418

import cli@0.2.0.0/cli.bend as Cli
import Base

6418# The slots up to the variadic one, which takes every later value.
6419def completing(slots: List<&2, Slot>) -> List<&2, Slot>:
6420  match slots:
6421    case Nil{}: Nil{}
6422    case Slot{k, hidden, required, True{}, rest, ph, comp} <> tail:
6423      [Slot{k, hidden, required, True{}, rest, ph, comp}]
6424    case head <> tail: head <> completing(tail)

Uses (3)

Used by (3)