Tally: Difference between revisions

From NARS2000
Jump to navigationJump to search
(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…")
 
No edit summary
Line 4: Line 4:
     <table border="0" cellpadding="5" cellspacing="0" summary="">
     <table border="0" cellpadding="5" cellspacing="0" summary="">
     <tr>
     <tr>
       <td valign="top"><apll>Z←&gt;R</apll></td>
       <td valign="top"><apll>Z←≢R</apll></td>
       <td></td>
       <td></td>
       <td></td>
       <td></td>
Line 22: Line 22:
<p>For example,</p>
<p>For example,</p>


<apll>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;⍬<br />
<apll>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;≢⍬<br />
0<br />
0<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;23<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;≢23<br />
1<br />
1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;,23<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,23<br />
1<br />
1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;2 3 4⍴5 6<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;≢2 3 4⍴5 6<br />
2</apll>
2</apll>

Revision as of 08:36, 25 May 2013

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