Generic Cartesian product
A stack-oriented programming language suitable for code golfing
Status: Alpha
Brought to you by:
aditsu
A generic cartesian product operater (e*)
This would work like
Array Number e -> Give all possible cartesian products of size Number%Array.length from the Array
Number1 Number2 e -> Give all possible cartesian products of size Number2%Number1 from the Array[0 ... (Number1 - 1)]
Why the %? Also, can you give a short example (to see what the results look like)?
Agreed to drop the %
Implemented as
m*(overloaded) in CJam 0.6.5 (coming soon)