Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Py.TupleInterface for Python values of type Tuple.
val check : Object.t -> boolcheck o returns true if o is a Python tuple.
val create : int -> Object.tWrapper for PyTuple_New
val empty : Object.tThe empty tuple (). This value is guaranteed to be the unique value associated to ().
val is_empty : Object.t -> boolPy.is_empty v is true if and only if v is (). Since Py.Tuple.empty is guaranteed to be the unique value associated to (), Py.is_empty v is equivalent to v == Py.empty.
Equivalent to Sequence.get_item.
Wrapper for PyTuple_SetItem
Wrapper for PyTuple_GetSlice
val size : Object.t -> intWrapper for PyTuple_Size
init n f returns the Python tuple (f 0, f 1, ..., f (n - 1)).
of_array a returns the Python tuple with the same elements as a.
of_array_map f a returns the Python tuple (f a0, ..., f ak) where a0, ..., ak are the elements of a.
of_list l returns the Python tuple with the same elements as l.
of_list f l returns the Python tuple (f l1, ..., f ln) where l1, ..., ln are the elements of l. of_list_map f l is equivalent to of_list (List.map f l) but is tail-recursive.
Equivalent to Sequence.to_array.
Equivalent to Sequence.to_array_map.
Equivalent to Sequence.to_list.
Equivalent to Sequence.to_list_map.
val of_seq : Object.t Stdcompat.Seq.t -> Object.tof_seq s returns the Python tuple with the values of the sequence s.
val to_seq : Object.t -> Object.t Stdcompat.Seq.tEquivalent to Sequence.to_seq.
val to_seqi : Object.t -> (int * Object.t) Stdcompat.Seq.tEquivalent to Sequence.to_seqi.
Equivalent to Sequence.fold_left.
Equivalent to Sequence.fold_right.
Equivalent to Sequence.for_all.
Equivalent to Sequence.exists.
Equivalent to Sequence.tuple.
of_tuple4 (o0, o1) returns the Python tuple (o0, o1).
of_tuple4 (o0, o1, o2) returns the Python tuple (o0, o1, o2).
of_tuple4 (o0, o1, o2, o3) returns the Python tuple (o0, o1, o2, o3).
of_tuple5 (o0, o1, o2, o3, o4) returns the Python tuple (o0, o1, o2, o3, o4).
to_tuple5 t returns the tuple (Py.Tuple.get_item t 0, Py.Tuple.get_item t 1).
to_tuple5 t returns the tuple (Py.Tuple.get_item t 0, Py.Tuple.get_item t 1, Py.Tuple.get_item t 2).
to_tuple5 t returns the tuple (Py.Tuple.get_item t 0, Py.Tuple.get_item t 1, Py.Tuple.get_item t 2, Py.Tuple.get_item t 3).
to_tuple5 t returns the tuple (Py.Tuple.get_item t 0, Py.Tuple.get_item t 1, Py.Tuple.get_item t 2, Py.Tuple.get_item t 3, Py.Tuple.get_item t 4).