Menu

#45 Generic Cartesian product

0.6.4
fixed
aditsu
None
2015-04-17
2015-02-26
Optimizer
No

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)]

Discussion

  • aditsu

    aditsu - 2015-04-17

    Why the %? Also, can you give a short example (to see what the results look like)?

     
  • aditsu

    aditsu - 2015-04-17
    • status: open --> fixed
     
  • aditsu

    aditsu - 2015-04-17

    Agreed to drop the %
    Implemented as m* (overloaded) in CJam 0.6.5 (coming soon)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.