Changes between Version 4 and Version 5 of TablesCowan


Ignore:
Timestamp:
08/27/10 12:00:15 (7 years ago)
Author:
cowan
Comment:

Unpredictable behavior if mutated while iterating

Legend:

Unmodified
Added
Removed
Modified
  • TablesCowan

    v4 v5  
    9090`(table-map `''table''` `''procedure'' . `''args''`)` 
    9191 
    92 Returns a new table as if by invoking `(make-table . `''args''`).  The new table is the result of mapping ''procedure'', which takes two arguments, over ''table''.  It is applied to the key and value of each association in ''table'', and returns two values, the key and value to be placed in the new table.  (Not in SRFI-69) 
     92Returns a new table as if by invoking `(make-table . `''args''`).  The new table is the result of mapping ''procedure'', which takes two arguments, over ''table''.  It is applied to the key and value of each association in ''table'', and returns two values, the key and value to be placed in the new table.  f the table is mutated while `table-map` is running, the behavior is unpredictable.  (Not in SRFI-69) 
    9393 
    9494`(table-for-each `''table''` `''procedure''`)` 
    9595 
    96 The same as `table-map`, except that no new table is constructed; returns undefined values.  (SRFI-69 `hash-table-walk`) 
     96The same as `table-map`, except that no new table is constructed; returns undefined values.  If the table is mutated while `table-for-each` is running, the behavior is unpredictable.  (SRFI-69 `hash-table-walk`) 
    9797 
    9898`(table->list `''table''`)`