def lines.go

bolt@1.27.0.0 · src/rules/style/doc.bend:77

import bolt@1.27.0.0/src/rules/style/doc.bend as Doc
import Base
import bolt@1.27.0.0/src/syntax/outline.bend as Outline

77def lines.go(ls: List<&2, String>, +ins: List<&2, Bool>) -> List<&2, String>:
78  match ls:
79    case Nil{}:
80      Nil{}
81    case Con{hh, tt}:
82      Bool.pick(String, Outline.inside.hit(ins), "", hh) <> lines.go(tt, Outline.inside.rest(ins))

Uses (6)

Used by (1)