aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/Merkle.ml
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-09-11 04:06:52 +0000
committerGitHub <noreply@github.com>2026-09-11 01:06:52 -0300
commitb79224410f469a1cd4ff3be4f8e62d71398109fc (patch)
treee025feebbdf9703ce790b4a97cb9997242c9bb4b /lib/kernel/Merkle.ml
parentefe8032f7e224c29fc67a4f8cfd52db908442eec (diff)
downloadRNT-b79224410f469a1cd4ff3be4f8e62d71398109fc.tar.gz
RNT-b79224410f469a1cd4ff3be4f8e62d71398109fc.zip
Multigroup objects
Diffstat (limited to '')
-rw-r--r--lib/kernel/Merkle.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/kernel/Merkle.ml b/lib/kernel/Merkle.ml
index 2566941..06bbb8f 100644
--- a/lib/kernel/Merkle.ml
+++ b/lib/kernel/Merkle.ml
@@ -362,8 +362,8 @@ module type INTERFACE = functor (S : Abstract.Storage.STORAGE) (K : KEY) (V : VA
val lookup : S.transaction -> K.t -> node -> (V.t option, Concepts.Condition.condition) result
val fold_left : S.transaction -> ('c -> K.t -> V.t -> 'c) -> 'c -> node -> ('c, Concepts.Condition.condition) result
-
val iter : S.transaction -> (K.t -> V.t -> 'a) -> node -> (unit, Concepts.Condition.condition) result
+ val keys : S.transaction -> node -> (K.t BatFingerTree.t, Concepts.Condition.condition) result
end
module Interface : INTERFACE = functor (S : Abstract.Storage.STORAGE) (K : KEY) (V : VALUE) -> struct
@@ -425,6 +425,8 @@ module Interface : INTERFACE = functor (S : Abstract.Storage.STORAGE) (K : KEY)
fold_left tx
(fun _ k v -> f k v |> ignore)
() node
+
+ let keys = T.keys
end
module StringKey : KEY with type t = string = struct