def green_names
import cli@0.2.0.0/cli.bend as Cliimport Base
5825def green_names(names: List<&2, String>, first: Bool) -> List<&2, Segment>:
5826 match names:
5827 case Nil{}: Nil{}
5828 case name <> tail:
5829 List.concat(&2, Segment, [
5830 Bool.pick(List<&2, Segment>, first, [], [plain(", ")]),
5831 quoted(name, [Green{}]), green_names(tail, False{})])