3 ms·
see also http://www.sudleyplace.com/APL/A%20Combinatorial%20Operator%20in%20APL.pdf http://www.sudleyplace.com/APL/A%20Combinatorial%20Operator%... > The goal
by 082349872349872 3y ago
see also http://www.sudleyplace.com/APL/A%20Combinatorial%20Operator%20in%20APL.pdf http://www.sudleyplace.com/APL/A%20Combinatorial%20Operator%...
> The goal of this document is to describe a single APL primitive to both count and generate various Combinatorial Arrays: permutations, combinations, compositions, partitions, etc. The unifying (and very APL-like) principle for such a primitive is Gian-Carlo Rota's Twelvefold Way as described in Richard Stanley's "Enumerative Combinatorics", Knuth’s TAoCP, Vol. 4A, and Wikipedia among other references.