diff options
author | Vladimir Azarov <avm@intermediate-node.net> | 2025-05-17 14:45:50 +0200 |
---|---|---|
committer | Vladimir Azarov <avm@intermediate-node.net> | 2025-05-17 14:45:50 +0200 |
commit | 5edd85474d6d8f3a0cc06cc0250ed3db8b26fcfa (patch) | |
tree | bd7ad914025858b4389b1801216ac7d41a0c1f45 /tree.sig | |
parent | 1f31e550385cfa64a36167a5f3f9ec780baaad86 (diff) |
Function-like macros
Diffstat (limited to 'tree.sig')
-rw-r--r-- | tree.sig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tree.sig b/tree.sig new file mode 100644 index 0000000..afab259 --- /dev/null +++ b/tree.sig @@ -0,0 +1,13 @@ +signature TREE = sig + type ('k, 'v) t + exception Exists + + val empty: ('k, 'v) t + + val insert: ('k -> 'k -> order) -> ('k, 'v) t -> 'k -> 'v -> ('k, 'v) t + val lookup: ('k -> 'k -> order) -> ('k, 'v) t -> 'k -> 'v option + val lookup2: ('k -> 'k -> order) -> ('k, 'v) t -> 'k -> + ('v -> 'v option * 'a) * 'a -> 'a * ('k, 'v) t + + val print: ('k, 'v) t -> ('k -> string) -> ('v -> string) -> unit +end |