Tally: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 22: Line 22:
<p>For example,</p>
<p>For example,</p>


<apll>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;≢⍬<br />
<apll><pre>
0<br />
      ≢⍬
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;≢23<br />
0
1<br />
      ≢23
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;≢,23<br />
1
1<br />
      ≢,23
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;≢2 3 4⍴5 6<br />
1
2</apll>
      ≢2 3 4⍴5 6
2</pre></apll>
 
<p>This symbol was suggested by the language designers of Dyalog APL.</p>

Latest revision as of 18:23, 15 April 2018

Z←≢R returns an integer scalar identical to ⍬⍴(⍴R),1.
R is an arbitrary array.
Z is an integer scalar whose value is the number of items along the first coordinate of R.


For example,

      ≢⍬
0
      ≢23
1
      ≢,23
1
      ≢2 3 4⍴5 6
2

This symbol was suggested by the language designers of Dyalog APL.