aboutsummaryrefslogtreecommitdiffstats
path: root/lib/concepts/Tuple.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/concepts/Tuple.ml')
-rw-r--r--lib/concepts/Tuple.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/concepts/Tuple.ml b/lib/concepts/Tuple.ml
index 28dadc5..c2da77c 100644
--- a/lib/concepts/Tuple.ml
+++ b/lib/concepts/Tuple.ml
@@ -39,3 +39,8 @@ and Body : Encoding.Record.BODY = struct
end
let hash tuple = Representation.to_blob tuple |> Hash.hash_of_blob
+
+let to_string {attributes; _} =
+ BatMap.String.bindings attributes
+ |> List.map (fun (a, v) -> a ^ "=" ^ Value.to_string v)
+ |> String.concat " "