Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Py.SequenceSourceInterface for Python values with a Sequence interface.
Wrapper for PySequence_Check
Wrapper for PySequence_Concat
Wrapper for PySequence_Contains
Wrapper for PySequence_Count
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
Wrapper for PySequence_Length
Wrapper for PySequence_List
Wrapper for PySequence_Repeat
Wrapper for PySequence_SetItem
Wrapper for PySequence_SetSlice
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.
to_seq s returns the OCaml sequence of the values from the Python sequence s.
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.