aboutsummaryrefslogtreecommitdiffstats
path: root/lib/concepts/Tuple.mli
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-09-09 22:13:50 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2026-09-11 01:07:40 -0300
commit8e5643db833c769f7f0a6fdf30959eec2b37eb47 (patch)
tree095cd74c5f3b540d2775f3a74f9a382b2d26738b /lib/concepts/Tuple.mli
parent0a9446795bd19a3017482f702df01ebaadadfd48 (diff)
downloadRNT-8e5643db833c769f7f0a6fdf30959eec2b37eb47.tar.gz
RNT-8e5643db833c769f7f0a6fdf30959eec2b37eb47.zip
tuple concept based atop of maps for attributes
Diffstat (limited to 'lib/concepts/Tuple.mli')
-rw-r--r--lib/concepts/Tuple.mli19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/concepts/Tuple.mli b/lib/concepts/Tuple.mli
new file mode 100644
index 0000000..06542c8
--- /dev/null
+++ b/lib/concepts/Tuple.mli
@@ -0,0 +1,19 @@
+type t
+
+val empty : t
+val is_empty : t -> bool
+val set : string -> Value.value -> t -> t
+val find_opt : string -> t -> Value.value option
+
+module Error : sig
+ val unknown_attribute : string -> Condition.condition
+end
+
+val get : string -> t -> (Value.value, Condition.condition) result
+val attributes : t -> string BatSet.t
+val project : string BatFingerTree.t -> t -> (t, Condition.condition) result
+val rename : (string * string) BatFingerTree.t -> t -> (t, Condition.condition) result
+val merge : t -> t -> t option
+val hash : t -> Hash.hash
+
+module Representation : Encoding.Record.S with type t = t