[Jprogramming] More newbie tacit headscratching: Dyads (eg nPr)
Sherlock, Ric
R.G.Sherlock at massey.ac.nz
Fri Feb 12 09:46:11 HKT 2010
> 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
More information about the Programming
mailing list