Modified Assignment: Difference between revisions
From NARS2000
Jump to navigationJump to search
Sudleyplace (talk | contribs) No edit summary |
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><apll> A<i> | <td><apll> A<i>f</i>←R</apll></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
<td>is shorthand for <apll>A←A<i> | <td>is shorthand for <apll>A←A<i>f</i> R</apll>.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><apll>A[I]<i> | <td><apll>A[I]<i>f<i>←R</apll></td> | ||
<td></td> | <td></td> | ||
<td></td> | <td></td> | ||
<td>is shorthand for <apll>A[I]←A[I]<i> | <td>is shorthand for <apll>A[I]←A[I]<i>f</i> R</apll></td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 19: | Line 19: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><apll>A</apll> is a name with an existing value, <apll>I</apll> is an arbitrary index to <apll>A</apll>, <apll>R</apll> is an arbitrary array. | <td><apll>A</apll> is a name with an existing value, <apll>I</apll> is an arbitrary index to <apll>A</apll>, <apll><i>f</i></apll> is an arbitrary dyadic function, and <apll>R</apll> is an arbitrary array. | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
<br /> | <br /> | ||
< | <p>For example, <apll>A+←1</apll> is shorthand for <apll>A←A+1</apll>, and <apll>A,←' '</apll> is shorthand for <apll>A←A,' '</apll>.</p> | ||
For example, <apll>A+←1</apll> is shorthand for <apll>A←A+1</apll>, and <apll>A,←' '</apll> is shorthand for <apll>A←A,' '</apll>. |
Revision as of 11:23, 10 April 2008
|
||||||||
A is a name with an existing value, I is an arbitrary index to A, f is an arbitrary dyadic function, and R is an arbitrary array. |
For example, A+←1 is shorthand for A←A+1, and A,←' ' is shorthand for A←A,' '.