diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-09-09 22:07:28 -0300 |
|---|---|---|
| committer | Marcos Magueta <maguetamarcos@gmail.com> | 2026-09-11 01:07:40 -0300 |
| commit | 962cf10614b0b3af8e0dd9d05b2f5720b1197f8d (patch) | |
| tree | 1248525cedaeebb840dc2ddcee3c758d7503ab63 /lib/concepts/Heading.mli | |
| parent | f61e42262ce75179f356e122a5c63ed34e584082 (diff) | |
| download | RNT-962cf10614b0b3af8e0dd9d05b2f5720b1197f8d.tar.gz RNT-962cf10614b0b3af8e0dd9d05b2f5720b1197f8d.zip | |
heading concept for tuple handling
Diffstat (limited to 'lib/concepts/Heading.mli')
| -rw-r--r-- | lib/concepts/Heading.mli | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/concepts/Heading.mli b/lib/concepts/Heading.mli new file mode 100644 index 0000000..98b8e60 --- /dev/null +++ b/lib/concepts/Heading.mli @@ -0,0 +1,24 @@ +type t + +val of_alist : (string * string) list -> t + +(** attributes in name order. *) +val attributes : t -> (string * string) BatFingerTree.t + +val names : t -> string BatSet.t +val arity : t -> int +val mem : string -> t -> bool + +module Error : sig + val unknown_attribute : string -> Condition.condition + val incompatible_domain : string -> Condition.condition +end + +val domain_of : string -> t -> (string, Condition.condition) result +val project : string BatFingerTree.t -> t -> (t, Condition.condition) result +val rename : (string * string) BatFingerTree.t -> t -> (t, Condition.condition) result +val shared : t -> t -> string BatSet.t +val joined : t -> t -> (t, Condition.condition) result +val compatible : t -> t -> bool + +module Representation : Encoding.Record.S with type t = t |
