Modified Assignment: Difference between revisions

From NARS2000
Jump to navigationJump to search
(New page: <table border="1" cellpadding="5" cellspacing="0" rules="none" summary=""> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" summary=""> <tr> <td><apl size="large...)
 
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><apl size="large"> A<i>fn</i>{is}R</apl></td>
       <td><apl size="large"> A<i>fn</i>←R</apl></td>
       <td></td>
       <td></td>
       <td></td>
       <td></td>
       <td>is shorthand for <apl size="large">A{is}A<i>fn</i> R</apl>.</td>
       <td>is shorthand for <apl size="large">A←A<i>fn</i> R</apl>.</td>
     </tr>
     </tr>
     <tr>
     <tr>
       <td><apl size="large">A[I]<i>fn<i>{is}R</apl></td>
       <td><apl size="large">A[I]<i>fn<i>←R</apl></td>
       <td></td>
       <td></td>
       <td></td>
       <td></td>
       <td>is shorthand for <apl size="large">A[I]{is}A[I]<i>fn</i> R</apl></td>
       <td>is shorthand for <apl size="large">A[I]←A[I]<i>fn</i> R</apl></td>
     </tr>
     </tr>
     </table>
     </table>

Revision as of 10:54, 9 April 2008

Afn←R is shorthand for A←Afn R.
A[I]fn←R is shorthand for A[I]←A[I]fn R
A is a name with an existing value, I is an arbitrary index to A, R is an arbitrary array.



For example, A+←1 is shorthand for A←A+1, and A,←' ' is shorthand for A←A,' '.