def merge_go
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmtimport Base
261def merge_go(+l: List<&2, Seg>, +cur: Seg) -> List<&2, Seg>:
262 match l:
263 case Nil{}:
264 Con{cur, Nil{}}
265 case Con{s, t}:
266 merge_emit(same_style(cur, s), cur, merge_go(t, merge_acc(same_style(cur, s), cur, s)))