Here's an example argument list which specifies a permutation:
9 7 8
Here's the complete permutation:
(([ ,~ -.~) 1 i.@+ >./) 9 7 8
0 1 2 3 4 5 6 9 7 8
Here's the relevance of each member of the permutation:
({. +/ .> }.)\. (([ ,~ -.~) 1 i.@+ >./) 9 7 8
0 0 0 0 0 0 0 2 0 0
Notice that every element which was added to the argument list, to
complete the permutation has zero relevance. So A. 9 7 8 is equal to
A. (- <./) 9 7 8 which is A. 2 0 1.
FYI,
--
Raul
On Fri, Dec 7, 2012 at 9:27 AM, Aai <[email protected]> wrote:
>> (([ ,~ -.~) 1 i.@+ >./) 1 2 4
>> 0 3 1 2 4
>
>
> or with an interesting application of under and cycle :
>
> ]&.C. 1 2 4
>
> 0 3 1 2 4
>
>
>> Note that if all these missing values are smaller in value than
>> anything in the argument list they will have
>
>
> I have problems understanding this.Sorry if it is my bad English.
>
>
> --
> Met vriendelijke groet,
> @@i = Arie Groeneveld
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm