Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/src/smlnj-lib/Util/hash-table.sml
ViewVC logotype

Diff of /sml/trunk/src/smlnj-lib/Util/hash-table.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 595, Wed Apr 5 03:30:17 2000 UTC revision 596, Wed Apr 5 14:36:19 2000 UTC
# Line 152  Line 152 
152      fun foldi f init (HT{table, ...}) = HTRep.foldi f init (! table)      fun foldi f init (HT{table, ...}) = HTRep.foldi f init (! table)
153      fun fold f init (HT{table, ...}) = HTRep.fold f init (! table)      fun fold f init (HT{table, ...}) = HTRep.fold f init (! table)
154    
155      (* modify the hash-table items in place *)
156        fun modifyi f (HT{table, ...}) = HTRep.modifyi f (!table)
157        fun modify f (HT{table, ...}) = HTRep.modify f (!table)
158    
159    (* remove any hash table items that do not satisfy the given    (* remove any hash table items that do not satisfy the given
160     * predicate.     * predicate.
161     *)     *)
162      fun filteri pred (HT{table, ...}) = HTRep.filteri pred (! table)      fun filteri pred (HT{table, n_items, ...}) =
163      fun filter pred (HT{table, ...}) = HTRep.filter pred (! table)            n_items := HTRep.filteri pred (! table)
164        fun filter pred (HT{table, n_items, ...}) =
165              n_items := HTRep.filter pred (! table)
166    
167    (* Create a copy of a hash table *)    (* Create a copy of a hash table *)
168      fun copy (HT{hash_fn, eq_pred, table, n_items, not_found}) =HT{      fun copy (HT{hash_fn, eq_pred, table, n_items, not_found}) =HT{

Legend:
Removed from v.595  
changed lines
  Added in v.596

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0