Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Interface for Python values with a Sequence
interface.
val check : Object.t -> bool
Wrapper for PySequence_Check
Wrapper for PySequence_Concat
Wrapper for PySequence_Contains
Wrapper for PySequence_Count
val del_item : Object.t -> int -> unit
Wrapper for PySequence_DelItem
Wrapper for PySequence_Fast
Wrapper for PySequence_GetItem
Wrapper for PySequence_GetSlice
Wrapper for PySequence_Index
Wrapper for PySequence_InPlaceConcat
Wrapper for PySequence_InPlaceRepeat
val length : Object.t -> int
Wrapper for PySequence_Length
Wrapper for PySequence_List
Wrapper for PySequence_Repeat
Wrapper for PySequence_SetItem
Wrapper for PySequence_SetSlice
val size : Object.t -> int
Wrapper for PySequence_Size
Wrapper for PySequence_Tuple
to_array s
returns the array with the same elements as the Python sequence s
.
to_array_map f s
returns the array of the results of f
applied to all the elements of the Python sequence s
.
to_list s
returns the list with the same elements as the Python sequence s
.
to_list_map f s
returns the list of the results of f
applied to all the elements of the Python sequence s
. to_list_map f s
is equivalent to List.map f (to_list s)
but is tail-recursive and f
is applied to the elements of s
in the reverse order.
val to_seq : Object.t -> Object.t Stdcompat.Seq.t
to_seq s
returns the OCaml sequence of the values from the Python sequence s
.
val to_seqi : Object.t -> (int * Object.t) Stdcompat.Seq.t
to_seqi s
returns the OCaml indexed sequence of the values from the Python sequence s
.
fold_left f v s
returns (f (...(f v s1)...) sn)
where s1
, ..., sn
are the elements of the Python sequence s
.
fold_right f s v
returns (f s1 (...(f v sn)...)
where s1
, ..., sn
are the elements of the Python sequence s
. This function is tail-recursive.
for_all p s
checks if p
holds for all the elements of the Python sequence s
.