diff --git a/CHANGELOG.md b/CHANGELOG.md index 30f256f..73e70b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog ==== +## Version 0.0.2 (2016-01-26) + +* Remove support for Combination.combine(Enum.t, Range.t) as it is simply a `Enum.flat_map/2` of `Combination.combine/2`, which should support any Enumerable other than Range. + ## Version 0.0.1 (2016-01-15) * First Version diff --git a/doc/404.html b/doc/404.html index c4edf26..eb848b4 100644 --- a/doc/404.html +++ b/doc/404.html @@ -4,9 +4,9 @@ - - 404 – Combination v0.0.1 - + + 404 – Combination v0.0.2 + @@ -27,7 +27,7 @@

Combination

@@ -69,7 +69,7 @@

Page not found

Built using - ExDoc (v0.11.3), + ExDoc (v0.11.4), designed by diff --git a/doc/Combination.html b/doc/Combination.html index 861b023..3465980 100644 --- a/doc/Combination.html +++ b/doc/Combination.html @@ -4,9 +4,9 @@ - - Combination – Combination v0.0.1 - + + Combination – Combination v0.0.2 + @@ -27,7 +27,7 @@

Combination

@@ -59,11 +59,11 @@

- Combination v0.0.1 + Combination v0.0.2 Combination - + @@ -72,7 +72,8 @@

Provide a set of algorithms to generate combinations and permutations.

-

For non-distinct elements in the source collection, simply pipe the result through Enum.uniq/1 to remove duplicates.

+

For source collection containing non-distinct elements, pipe the resultant list through Enum.uniq/1 +to remove duplicate elements.

@@ -97,7 +98,7 @@

combine(collection, k) -

Generate k1..k2 combinations of based on given collection, where k2 > k1

+

Generate combinations based on given collection

@@ -138,7 +139,7 @@

combine(collection, k) - + @@ -148,21 +149,16 @@

Specs

-
combine(Enum.t, Range.t) :: [list]
-
combine(Enum.t, non_neg_integer) :: [list]
-

Generate k1..k2 combinations of based on given collection, where k2 > k1.

+

Generate combinations based on given collection.

Examples

-
iex> 1..3 |> Combination.combine(1..2)
-[[1], [2], [3], [3, 2], [3, 1], [2, 1]]
-
-iex> 1..3 |> Combination.combine(2..3)
-[[3, 2], [3, 1], [2, 1], [3, 2, 1]]
+
iex> 1..3 |> Combination.combine(2)
+[[3, 2], [3, 1], [2, 1]]
@@ -173,7 +169,7 @@

Examples

permutate(collection, filter \\ fn _p -> true end) - + @@ -212,7 +208,7 @@

Example

Built using - ExDoc (v0.11.3), + ExDoc (v0.11.4), designed by diff --git a/doc/api-reference.html b/doc/api-reference.html index cb12a5a..df749a9 100644 --- a/doc/api-reference.html +++ b/doc/api-reference.html @@ -4,9 +4,9 @@ - - API Reference – Combination v0.0.1 - + + API Reference – Combination v0.0.2 + @@ -27,7 +27,7 @@

Combination

@@ -58,7 +58,7 @@

Changelog

+

Version 0.0.2 (2016-01-26)

Version 0.0.1 (2016-01-15)