Hi

I'm attempting to adapt the code for cartesian-product into
2cartesian-product, in order to produce the cartesian product of 3
sequences.

This is the deepest I've gotten into currying and composing, and I'm not
quite sure I grok exactly how these words are working. If you could shine a
light on a concept I'm missing, I'd appreciate it.

I've pasted the code here:
http://paste.factorcode.org/paste?id=2888

The output of my debugging session is here:
https://www.evernote.com/pub/lorynjenkins/factorn-cartesian-product

The debugging session was initialised with:
1 10 [a,b] [ ] map dup dup 2cartesian-product

Loryn Jenkins
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to