--- sml/branches/SMLNJ/src/smlnj-lib/Util/hash2-table-fn.sml 1998/01/18 00:59:30 7 +++ sml/branches/SMLNJ/src/smlnj-lib/Util/hash2-table-fn.sml 1998/01/18 01:01:29 8 @@ -43,6 +43,10 @@ n_items = ref 0 } + (* remove all elements from the table *) + fun clear (TBL{tbl1, tbl2, n_items, ...}) = ( + HTRep.clear(!tbl1); HTRep.clear(!tbl2); n_items := 0) + (* Remove an item, returning the item. The table's exception is raised if * the item doesn't exist. *)
Click to toggle
does not end with </html> tag
does not end with </body> tag
The output has ended thus: n item, returning the item. The table's exception is raised if * the item doesn't exist. *)