def cut.go

bend-lint-rules@0.2.0.0 · layout/format.bend:2097

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import Base

2097def cut.go(xs: List<&2, Tree>, c: Cut) -> Cut:
2098  match xs c:
2099    case Nil{} Cut{before, after, found}:
2100      Cut{List.reverse(&2, Tree, before), List.reverse(&2, Tree, after), found}
2101    case Con{n, rest} c2:
2102      cut.go(rest, cut.step(n, c2))

Uses (5)

Used by (1)