def mask

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

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

10def mask(+n: U32) -> U32:
11  (U32.shln(1, U32.to_nat(n)) - 1 : U32)

Uses (4)

Used by (3)