mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
one more signature to be implemented later
This commit is contained in:
parent
e83298ef24
commit
db302adab2
2 changed files with 9 additions and 2 deletions
3
enum.ml
3
enum.ml
|
|
@ -424,6 +424,9 @@ let combinations n enum =
|
||||||
assert (n >= 0);
|
assert (n >= 0);
|
||||||
failwith "not implemented" (* TODO *)
|
failwith "not implemented" (* TODO *)
|
||||||
|
|
||||||
|
let powerSet enum =
|
||||||
|
failwith "not implemented"
|
||||||
|
|
||||||
(** {2 Basic conversion functions} *)
|
(** {2 Basic conversion functions} *)
|
||||||
|
|
||||||
let to_list enum =
|
let to_list enum =
|
||||||
|
|
|
||||||
8
enum.mli
8
enum.mli
|
|
@ -155,10 +155,14 @@ val product : 'a t -> 'b t -> ('a * 'b) t
|
||||||
(** Cartesian product *)
|
(** Cartesian product *)
|
||||||
|
|
||||||
val permutations : 'a t -> 'a t t
|
val permutations : 'a t -> 'a t t
|
||||||
(** Permutations of the enum *)
|
(** Permutations of the enum. Each permutation becomes unavailable once
|
||||||
|
the next one is produced. *)
|
||||||
|
|
||||||
val combinations : int -> 'a t -> 'a t t
|
val combinations : int -> 'a t -> 'a t t
|
||||||
(** Combinations of given length *)
|
(** Combinations of given length. *)
|
||||||
|
|
||||||
|
val powerSet : 'a t -> 'a t t
|
||||||
|
(** All subsets of the enum (in no particular order) *)
|
||||||
|
|
||||||
(** {2 Basic conversion functions} *)
|
(** {2 Basic conversion functions} *)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue