Guile Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme style auto-resizing hashtable (fwd)
Rob Browning <rlb@cs.utexas.edu> writes:
> Note that their justification for each() makes sense (at least given
> that perl can tie() hashes to DBM files):
>
> Note that functions such as keys() and values()
> may return huge array values when used on large
> DBM files. You may prefer to use the each()
> function to iterate over large DBM files.
> Example:
>
> # print out history file offsets
> dbmopen(%HIST,'/usr/lib/news/history',0666);
> while (($key,$val) = each %HIST) {
> print $key, ' = ', unpack('L',$val), "\n";
> }
> dbmclose(%HIST);
Handled by hashtable-for-each.
--
Harvey J. Stein
BFM Financial Research
hjstein@bfr.co.il
Guile Home |
Main Index |
Thread Index