On Mon, 2010-02-15 at 10:24 +0000, Ian Clark wrote: > One can learn a lot of tacit J just by analysing that example: bc=: > < 0&(, + ,~) 1:
Can't pretend I understand much of it, but I intend to take it apart in tonight's "Learning J" session! Great to see all this stuff. Now forgive me if I'm missing something in all this (as a newb) but wouldn't a simpler way of generating binomial coefficients just be: !/~i.10 1 1 1 1 1 1 1 1 1 1 0 1 2 3 4 5 6 7 8 9 0 0 1 3 6 10 15 21 28 36 0 0 0 1 4 10 20 35 56 84 0 0 0 0 1 5 15 35 70 126 0 0 0 0 0 1 6 21 56 126 0 0 0 0 0 0 1 7 28 84 0 0 0 0 0 0 0 1 8 36 0 0 0 0 0 0 0 0 1 9 0 0 0 0 0 0 0 0 0 1 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
