def combine_if
bend-collections@1.0.0.0 · src/containers/bitset.bend:386
import bend-collections@1.0.0.0/src/containers/bitset.bend as Bitset
import Base
import bend-collections@1.0.0.0/src/math/pow2.bend as P2
import bend-collections@1.0.0.0/src/containers/types/bitset.bend as E
386def combine_if(ok: Bool, +k: WordOp, +n: Nat, +d: Nat, a: Array<Wd>, +m: Nat, +e: Nat, b: Array<Wd>) -> Bitset & Bitset & Result<&2, &2, E.Error, Unit>:
387 match ok:
388 case True{}:
389 zip_fin(zip_go(P2.pow2t(d), (a, b), k, d, 0n), n, d, m, e)
390 case False{}:
391 (BS{n, d, a}, BS{m, e, b}, Fail{E.LengthMismatch{}})