def count.if

bend-kit-bits@0.1.0.1 · bits.bend:200

import bend-kit-bits@0.1.0.1/bits.bend as Bits
import Base

200def count.if(zero: Bool, c: Array<U32>, +len: U32) -> Array<U32>:
201  match zero:
202    case True{}:
203      c
204    case False{}:
205      count.of(len, Array.get(U32, c, len))

Uses (5)

Used by (1)