pyml

OCaml bindings for Python
IN THIS PACKAGE
Module Py . Set
val check : Object.t -> bool

check o returns true if o is a Python set.

val add : Object.t -> Object.t -> unit

Wrapper for PySet_Add

val clear : Object.t -> unit

Wrapper for PySet_Clear

val contains : Object.t -> Object.t -> bool

Wrapper for PySet_Contains

val copy : Object.t -> Object.t

Wrapper for PySet_New

val create : unit -> Object.t

Wrapper for PySet_New

val discard : Object.t -> Object.t -> unit

Wrapper for PySet_Discard

val size : Object.t -> int

Wrapper for PySet_Size

val to_list : Object.t -> Object.t list

to_list o returns the list of all elements in Python set o.

val to_list_map : ( Object.t -> 'a ) -> Object.t -> 'a list

to_list_map f o returns the list of f v for all elements v in Python set o.

val of_list : Object.t list -> Object.t

of_list l returns then Python set containing all elements from l.

val of_list_map : ( 'a -> Object.t ) -> 'a list -> Object.t

of_list_map f l returns then Python set containing f e for any e from l.