Changes between Version 6 and Version 7 of Arrays
- Timestamp:
- 09/15/13 09:40:54 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Arrays
v6 v7 49 49 $message[[]] append_message($message[[]] queue, $message m); 50 50 }}} 51 might be the declaration of a function that takes an array of messages and returns an array one longer which is equivalent to the original array with $m$ added. There is no "sharing" between these two arrays.51 might be the declaration of a function that takes an array of messages and returns an array one longer which is equivalent to the original array with `m` added. There is no "sharing" between these two arrays and no array is modified. 52 52 53 53 You can still modify first-class arrays and create references to elements of them, just as with regular arrays:
