def render

cswap-bend-cli@0.1.0.0 · tui/fmt.bend:286

import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmt
import Base

286# Lines joined with newlines, each painted (or plain under NO_COLOR).
287def render(+ls: List<&2, List<&2, Seg>>, +color: Bool) -> String:
288  match ls:
289    case Nil{}:
290      ""
291    case Con{l, t}:
292      paint(l, color) ++ render_rest(t, color)

Uses (7)

Used by (1)