Permutation block (maybe in APL libary?)

I just saw this thread when the forum summary landed in my inbox.

Here's another way of doing it (I had done this years ago, so just dug it up). The first argument tells you which permutation you want of the list, numbered 0 through n! -1. -Dan





DG permutations.xml (11.4 KB)

Very nice :slight_smile:
I did a bit of colouring-in, modified it to use 1-base indexing and added a C-block

image

ProjectName=DGDeclarativeDemo_cymplecyMod

Hey, that's great! I especially like the for each permutation! -dan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.