javascript Programming Glossary: hogs
Lazy Cartesian product of arrays (arbitrary nested loops) http://stackoverflow.com/questions/9422386/lazy-cartesian-product-of-arrays-arbitrary-nested-loops arrays var sets 2 3 4 5 'sweet' 'ugly' 'cats' 'dogs' 'hogs' and a callback function function holla n adj noun console.log.. lazyProduct sets holla 2 sweet cats 2 sweet dogs 2 sweet hogs 2 ugly cats 2 ugly dogs 2 ugly hogs 3 sweet cats 3 sweet dogs.. 2 sweet dogs 2 sweet hogs 2 ugly cats 2 ugly dogs 2 ugly hogs 3 sweet cats 3 sweet dogs 3 sweet hogs 3 ugly cats 3 ugly dogs..
|