Modified Assignment: Difference between revisions
From NARS2000
Jump to navigationJump to search
Sudleyplace (talk | contribs) (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...) |
Sudleyplace (talk | contribs) 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> | <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"> | <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> | <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] | <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
|
||||||||
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,' '.