Subsets
Elixir library for generating subsets/sublists from a list
Usage
iex(1)> Subsets.generate([:a, :b, :c])
[[:a], [:a, :b, :c], [:a, :c], [:a, :b], [:b, :c], [:c], [:b]]
Installation
The package can be installed by adding subsets
to your list of dependencies in mix.exs
:
def deps do
[
{:subsets, "~> 0.1.1"}
]
end
The docs can be found at https://hexdocs.pm/subsets.