Permutations by swapping: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
m (→{{header|J}}) |
||
Line 57: | Line 57: | ||
_1 _2 _1 3</lang> |
_1 _2 _1 3</lang> |
||
Alternatively, J defines C.!.2 as the parity of a permutation: |
Alternatively, J defines [http://www.jsoftware.com/help/dictionary/dccapdot.htm C.!.2] as the parity of a permutation: |
||
<lang J> (,.~C.!.2)<:| bfsjtn^:(i.!3) bfjt0 3 |
<lang J> (,.~C.!.2)<:| bfsjtn^:(i.!3) bfjt0 3 |