def cut.put
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
119# a field put before the fields after it, unless it is empty
120def cut.put(field: String, after: List<&2, String>) -> List<&2, String>:
121 match field:
122 case SNil{}:
123 after
124 case SCon{h, t}:
125 SCon{h, t} <> after