def gather_value
import cli@0.2.0.0/cli.bend as Cliimport Base
3646def gather_value(gather: Gather, +value: String,
3647 many: Bool) -> Gather:
3648 match gather:
3649 case Gather{seen, values, +count}:
3650 Bool.pick(Gather, many,
3651 Gather{True{}, value <> values, count},
3652 Gather{True{}, [value], count})