Changes between Version 6 and Version 7 of TablesCowan


Ignore:
Timestamp:
08/27/10 13:41:52 (7 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TablesCowan

    v6 v7  
    2828Creates a new table and populates it with the associations based on the successive ''key'' and ''value'' arguments.  The implementation may take the arguments into account in deciding what kind of table to create, but should not assume that no other types of keys or values will ever exist.   (Not in SRFI-69) 
    2929 
     30`(immutable-table `[''key'' ''value''] ... `)` 
     31 
     32The same as ``table``, except that the resulting table cannot be mutated either by adding or deleting associations or by changing the values of existing associations. 
     33 
    3034`(alist->table `''alist''` . `''args''`)` 
    3135 
    3236Creates a new table as if by invoking `(make-table . `''args''`)` which maps the car of every element in ''alist'' to the cdr of the same element.  If some key occurs multiple times in alist, the value in the first association will take precedence over later ones.  (SRFI-69 `alist->hash-table`) 
     37 
     38`(alist->immutable-table `''alist''` . `''args''`)` 
     39 
     40The same as `alist->table`, except that the resulting table cannot be mutated either by adding or deleting associations or by changing the values of existing associations. 
    3341 
    3442`(table-copy `''table''`)` 
     
    7078== Mutators == 
    7179 
     80It is an error to apply any of these to an immutable table. 
     81 
    7282`(table-set! `''table''` `''key''` `''value''`)` 
    7383