I am starting to get the hang of _tacit_ function specification for
monadic functions - quite easy and intuitive, really, once it 'clicks'.

However, I am still in the dark when it comes to dyads.
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?

Thanks




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

Reply via email to