Bitset.to_list: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/containers/bitset.bend as Bitset Lines 320-323 of bend-collections@1.0.0.0/src/containers/bitset.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/bitset.bend&start_line=320&end_line=323 import Base import bend-collections@1.0.0.0/src/math/pow2.bend as P2 def to_list(s: Bitset) -> Bitset & List<&2, Nat>: match s: case BS{+n, +d, a}: members_fin(members_go(P2.pow2t(d), (a, Nil{}), d), n, d) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/bitset.bend&name=Bitset https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/bitset.bend&name=members_fin https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/bitset.bend&name=members_go https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/math/pow2.bend&name=pow2t