From d7d4830443f1e385af862462f976553c8a9033e1 Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Thu, 27 Mar 2025 23:31:10 +0100 Subject: Hashtable-based findKeyword function --- hashtable.sig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hashtable.sig (limited to 'hashtable.sig') diff --git a/hashtable.sig b/hashtable.sig new file mode 100644 index 0000000..b714fd6 --- /dev/null +++ b/hashtable.sig @@ -0,0 +1,10 @@ +signature HASHTABLE = sig + type 'a t + + exception HashtableFull + exception Exists + + val create: int -> 'a t + val insert: 'a t -> string -> 'a -> unit + val lookup: 'a t -> string -> 'a option +end -- cgit v1.2.3