def cut.put

ezx@1.11.0.0 · src/pkg/pkg.bend:119

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import 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

Uses (2)

Used by (2)