def drop_zeros

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

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

81def drop_zeros(cs: List<&2, Char>) -> List<&2, Char>:
82  match cs:
83    case []:
84      []
85    case +c <> +rest:
86      Bool.pick(List<&2, Char>, Char.is_eq(c, '0'), drop_zeros(rest), c <> rest)

Uses (4)

Used by (1)