> From: Alex Gian > > An example: J provides the ! verb, which I understand is called 'Out > Of'. So I can easily make an nCr verb, since it's just the same thing > with the arguments commuted, > nCr =: !~ > > How would I go about, then, making an nPr verb, where nPr is nCr * r! > I can do it in two steps, if I first bond n to nCr, eg, 14P3 -> > n14Cr =: 14&nCr > (! * n14cr) 3 > > can anyone suggest how I do it in a single step?
Are you after something like this? 14 (!...@] * !~) 3 2184 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
