Skip to content

.powerSet() #12

@jpbulman

Description

@jpbulman

It'd be nice to have a method that returns an array, or iterable, of sets that are all the permutations of the elements of the set (a.k.a. the power set)

e.g.

const setA = new AdvancedSet(1, 2, 3)
setA.powerSet() // [AS(), AS(1), AS(2), AS(3), AS(1, 2), AS(1, 3), AS(2, 3), AS(1, 2, 3)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions