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 7, Sun Jan 18 00:59:30 1998 UTC revision 8, Sun Jan 18 01:01:29 1998 UTC
# Line 36  Line 36 
36              n_items = ref 0              n_items = ref 0
37            }            }
38    
39      (* remove all elements from the table *)
40        fun clear (HT{table, n_items, ...}) = (HTRep.clear(!table); n_items := 0)
41    
42    (* Insert an item.  If the key already has an item associated with it,    (* Insert an item.  If the key already has an item associated with it,
43     * then the old item is discarded.     * then the old item is discarded.
44     *)     *)

Legend:
Removed from v.7  
changed lines
  Added in v.8

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