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-fn.sml
ViewVC logotype

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

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

revision 9, Sun Jan 18 01:01:29 1998 UTC revision 596, Wed Apr 5 14:36:19 2000 UTC
# Line 140  Line 140 
140      fun foldi f init (HT{table, ...}) = HTRep.foldi f init (! table)      fun foldi f init (HT{table, ...}) = HTRep.foldi f init (! table)
141      fun fold f init (HT{table, ...}) = HTRep.fold f init (! table)      fun fold f init (HT{table, ...}) = HTRep.fold f init (! table)
142    
143      (* modify the hash-table items in place *)
144        fun modifyi f (HT{table, ...}) = HTRep.modifyi f (!table)
145        fun modify f (HT{table, ...}) = HTRep.modify f (!table)
146    
147    (* remove any hash table items that do not satisfy the given    (* remove any hash table items that do not satisfy the given
148     * predicate.     * predicate.
149     *)     *)
150      fun filteri pred (HT{table, ...}) = HTRep.filteri pred (! table)      fun filteri pred (HT{table, n_items, ...}) =
151      fun filter pred (HT{table, ...}) = HTRep.filter pred (! table)            n_items := HTRep.filteri pred (! table)
152        fun filter pred (HT{table, n_items, ...}) =
153              n_items := HTRep.filter pred (! table)
154    
155    (* Create a copy of a hash table *)    (* Create a copy of a hash table *)
156      fun copy (HT{table, n_items, not_found}) = HT{      fun copy (HT{table, n_items, not_found}) = HT{

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

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