Thanks very much for that suggestion, Ambrus, as well as the previous one. This sort of stuff is great for me at this early stage of learning J.
On Mon, 2010-02-15 at 12:55 +0100, Zsbán Ambrus wrote: > On Fri, Feb 12, 2010 at 2:17 AM, Alex Gian <[email protected]> wrote: > > How would I go about, then, making an nPr verb, where nPr is nCr * r! > > can anyone suggest how I do it in a single step? > > There's a third solution by the way, which doesn't rely on the (!) > verb, and might actually be simpler. > > 14 */@(-i.) 3 > 2184 > > Ambrus > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
