def after

near-v-framework@0.4.0.0 · domain/architecture/system/deployment/ops.bend:95

import near-v-framework@0.4.0.0/domain/architecture/system/deployment/ops.bend as Ops
import Base

95# The lines that start with a prefix, without it.
96def after(+prefix: String, ls: List<&2, String>) -> List<&2, String>:
97  match ls:
98    case []:
99      []
100    case +l <> rest:
101      keep_rest(String.starts_with(l, prefix), prefix, l, after(prefix, rest))

Uses (4)

Used by (2)