diff options
author | Vladimir Azarov <avm@intermediate-node.net> | 2025-05-18 14:17:50 +0200 |
---|---|---|
committer | Vladimir Azarov <avm@intermediate-node.net> | 2025-05-18 14:17:50 +0200 |
commit | d289f01594024a8fe64aeed56721260fab6b4e50 (patch) | |
tree | 204b160e1fb1d3325cc493db1d84b351dfb621a6 /tree.sig | |
parent | 183a4420d2f2a985dd26d76e63c2cdcaafedc5ad (diff) |
#else, #elif (rudimentary) support
Diffstat (limited to 'tree.sig')
-rw-r--r-- | tree.sig | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,10 +1,11 @@ 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 insert: ('k -> 'k -> order) -> ('k, 'v) t -> 'k -> 'v + -> 'v option * ('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 |