So, to be explicit,
monverb=: 500$[:?~>: NB. 500 reps of a permutation of 1+y
NB. For example,
10{.monverb 5
5 1 2 3 0 4 5 1 2 3
10{.monverb 5
4 5 3 2 0 1 4 5 3 2
$monverb"0 i.500
500 500
10 10{.monverb"0 i.500
0 0 0 0 0 0 0 0 0 0
0 1 0 1 0 1 0 1 0 1
1 2 0 1 2 0 1 2 0 1
3 0 2 1 3 0 2 1 3 0
2 1 4 3 0 2 1 4 3 0
4 3 2 5 1 0 4 3 2 5
2 6 3 0 5 4 1 2 6 3
1 0 3 4 7 5 6 2 1 0
7 5 2 1 4 6 3 8 0 7
6 9 3 2 7 8 4 1 5 0
On 1/16/08, Raul Miller <[EMAIL PROTECTED]> wrote:
>
> On Jan 16, 2008 3:44 PM, Kairit Sirts <[EMAIL PROTECTED]> wrote:
> > I have a monadic verb (let's call it monverb) which I want to call out
> 500
> ...
> I would not approach this problem in this way.
>
> I would use something like
> monverb"0 i.500
>
...
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm