def word_members
import bend-collections@1.0.0.0/src/containers/bitset.bend as Bitsetimport Base
117# Indices (from off) of set bits among the low m bits of w, then rest.
118def word_members(m: Nat, +w: U32, +off: Nat, rest: List<&2, Nat>) -> List<&2, Nat>:
119 match m:
120 case 0n:
121 rest
122 case 1n+p:
123 member_pick(low(w), off, word_members(p, U32.shr(w), 1n+off, rest))
Uses (6)
Used by (0)
No other definition uses this definition.