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

If available in Hex, the package can be installed by adding subsets to your list of dependencies in mix.exs:

def deps do
  [
    {:subsets, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/subsets.