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!
> I can do it in two steps, if I first bond n to nCr, eg,  14P3  ->
>        n14Cr =: 14&nCr
>        (! * n14cr) 3

That comes up so often there's a builtin for it by the way.

   14 (^!._1) 3
2184

Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to