Unranking, the shape Sage made familiar
A lazy enumerated set indexed by position. Drag the matrix to walk it. The collection is never built — At unranks.
source
<notatio-tangle>
Permutation
<notatio-dynamic value="_k" />
of 24:
<notatio-knob name="k" value="1" min="1" max="24">
<notatio-figure kind="permutation" value="At(Permutations(Range(1,4)), _k)" />
</notatio-knob>
</notatio-tangle>