def green_names

cli@0.2.0.0 · cli.bend:5825

import cli@0.2.0.0/cli.bend as Cli
import 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{})])

Uses (9)

Used by (1)