Sha256: 4275062ab0c948c057200a7fd9af8a10010df9ac5992bd434e10e2fb1f31a843
Contents?: true
Size: 239 Bytes
Versions: 26
Compression:
Stored size: 239 Bytes
Contents
# http://www.ruby-forum.com/topic/95519#200484 module WilliamJamesCartesianProduct def self.cart_prod( *args ) args.inject([[]]){|old,lst| new = [] lst.each{|e| new += old.map{|c| c.dup << e }} new } end end
Version data entries
26 entries across 26 versions & 2 rubygems