diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ref/ChangeLog | 5 | ||||
-rw-r--r-- | doc/ref/scheme-compound.texi | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/doc/ref/ChangeLog b/doc/ref/ChangeLog index 941510096..e0d55381a 100644 --- a/doc/ref/ChangeLog +++ b/doc/ref/ChangeLog @@ -1,3 +1,8 @@ +2004-02-15 Mikael Djurfeldt <mdj@chunk.mit.edu> + + * scheme-compound.texi (Hash Table Reference): Renamed hash-map + --> hash-map->list. + 2004-02-15 Kevin Ryde <user42@zip.com.au> * scheme-compound.texi (Hash Table Reference): In scm_hash_ref etc, diff --git a/doc/ref/scheme-compound.texi b/doc/ref/scheme-compound.texi index 49dd5d939..c74d4881d 100644 --- a/doc/ref/scheme-compound.texi +++ b/doc/ref/scheme-compound.texi @@ -2481,17 +2481,17 @@ create an entry for it with @var{init} as the value, and return that pair. @end deffn -@deffn {Scheme Procedure} hash-map proc table +@deffn {Scheme Procedure} hash-map->list proc table @deffnx {Scheme Procedure} hash-for-each proc table -@deffnx {C Function} scm_hash_map (proc, table) +@deffnx {C Function} scm_hash_map_to_list (proc, table) @deffnx {C Function} scm_hash_for_each (proc, table) Apply @var{proc} to the entries in the given hash @var{table}. Each -call is @code{(@var{proc} @var{key} @var{value})}. @code{hash-map} +call is @code{(@var{proc} @var{key} @var{value})}. @code{hash-map->list} returns a list of the results from these calls, @code{hash-for-each} discards the results and returns an unspecified value. Calls are made over the table entries in an unspecified order, and for -@code{hash-map} the order of the values in the returned list is +@code{hash-map->list} the order of the values in the returned list is unspecified. Results will be unpredictable if @var{table} is modified while iterating. @@ -2499,7 +2499,7 @@ For example the following returns a new alist comprising all the entries from @code{mytable}, in no particular order. @example -(hash-map cons mytable) +(hash-map->list cons mytable) @end example @end deffn |