Indices

From NARS2000
Revision as of 17:16, 29 August 2010 by WikiSysop (talk | contribs) (Created page with "<table border="1" cellpadding="5" cellspacing="0" rules="none" summary=""> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" summary=""> <tr> <td valign…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Z←⍸R returns an integer vector identical to R/⍳>R.
R is a scalar or vector of non-negative integers.
Z is an integer vector of length +/Rwhose values are R/⍳>R where monadic > is the Tally function.
This feature encapsulates a very common idiom in one symbol.


For example, in origin-0

      ⍸1 0 1 1 1 0 1
0 2 3 4 6
      ⍸2 3 4
0 0 1 1 1 2 2 2 2