by looking at Array's Class definition, i saw that the ".permute" method calls the "_ArrayPermute" primitive.
I have no C++ experience, but looking up the source code on GitHub (http://bit.ly/2rexD3a) i found the code snipet that is being called (pasted below).
Could anybody explain the permutation bit somehow?
Thanks and bests,
int prArrayPermute(struct VMGlobals *g, int numArgsPushed)
PyrSlot *a, *b, *slots1, *slots2, temp;
PyrObject *obj1, *obj2;
int i, j, m, z, size;
a = g->sp - 1;
b = g->sp;
if (NotInt(b)) return errWrongType;