summaryrefslogtreecommitdiff
path: root/hashtable.sig
diff options
context:
space:
mode:
authorVladimir Azarov <avm@intermediate-node.net>2025-05-14 03:19:35 +0200
committerVladimir Azarov <avm@intermediate-node.net>2025-05-14 03:19:35 +0200
commit3d568063a49204193009ad6a2637176b38902525 (patch)
treea29e144f61133c7cd505f3657ae4abf27b12f19f /hashtable.sig
parent52a6f8656e8a600a2c59fa2802fb46fafb30de45 (diff)
Printf
Diffstat (limited to 'hashtable.sig')
-rw-r--r--hashtable.sig7
1 files changed, 4 insertions, 3 deletions
diff --git a/hashtable.sig b/hashtable.sig
index b714fd6..b96bfb3 100644
--- a/hashtable.sig
+++ b/hashtable.sig
@@ -1,10 +1,11 @@
signature HASHTABLE = sig
type 'a t
- exception HashtableFull
- exception Exists
+ exception Full and Exists
- val create: int -> 'a t
+ val createLog: int -> 'a t
val insert: 'a t -> string -> 'a -> unit
val lookup: 'a t -> string -> 'a option
+ val lookup2: 'a t -> string ->
+ ('a -> 'a option * 'b) -> (unit -> 'b) -> 'b
end