package electrod

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Libelectrod.TupleSource

Tuples of atoms.

Sourcetype t

invariant: atoms <> empty

Sourceval of_list1 : Atom.t list -> t

Builds a tuple out of a non-empty list of atoms.

Sourceval tuple1 : Atom.t -> t

Builds a 1-tuple out of an atom.

Sourceval arity : t -> int

Returns the arity of the tuple.

Sourceval (@@@) : t -> t -> t

t1 @@@ t2 yields the concatenation of t1 followed by t2 (useful to compute the flat product of bounds/tuple sets).

Sourceval concat : t list -> t

Concatenation of a list of tuples. Fails if the list is empty.

Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval hash : t -> int
Sourceval transpose : t -> t

Transposes a pair.

Sourceval ith : int -> t -> Atom.t

i-th element of a tuple.

Sourceval is_in_join : t -> t -> t -> bool

is_in_join tuple t1 t2 says whether tuple is the concatenation of t1 (minus the last column) and t2 (minus the ifrst column).

Sourceval join : t -> t -> t

Joins two tuples (getting rid of the last and first columns (resp.))

Sourceval split : t -> int -> t * t

split t lg splits a tuple into two, the first being of length lg.

Sourceval all_different : t -> bool

all_different t tells whether all atoms in a tuple are different.

Sourceval to_1tuples : t -> t list

to_1tuples t splits a tuple into as many 1-tuples at its length.

Sourceval to_ntuples : int -> t -> t list

to_ntuples n t splits a tuple into n-tuples (length must be a multiple of n).

Sourceval to_list : t -> Atom.t list

to_list t produces a list of atoms.

include Intf.Print.S with type t := t
Sourceval pp : t Fmtc.t
Sourceval to_string : t -> string
Sourcemodule Set : CCSet.S with type elt = t
OCaml

Innovation. Community. Security.