def value_lines

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

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

359# The lines of a value, up to the one that ends it.
360def value_lines(ls: List<&2, String>, done: Bool) -> String:
361  match ls done:
362    case [] _:
363      ""
364    case _ True{}:
365      ""
366    case +l <> rest False{}:
367      l ++ "\n" ++ value_lines(rest, ends_scalar(l))

Uses (5)

Used by (1)