Changes between Version 6 and Version 7 of Arrays


Ignore:
Timestamp:
09/15/13 09:40:54 (13 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Arrays

    v6 v7  
    4949  $message[[]] append_message($message[[]] queue, $message m);
    5050}}}
    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.
     51might 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.
    5252
    5353You can still modify first-class arrays and create references to elements of them, just as with regular arrays: