Modified Assignment: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
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>f</i>←R</apll></td>
       <td><apll>A<i>f</i>←R</apll></td>
       <td></td>
       <td></td>
       <td></td>
       <td></td>

Revision as of 22:53, 11 April 2008

Af←R is shorthand for A←Af R.
A[I]f←R is shorthand for A[I]←A[I]f R
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,' '.