Add _.subsets to find all subsets of a superset #624

Closed
command3r opened this Issue May 31, 2012 · 2 comments

Comments

Projects
None yet
3 participants

Finding combinations of sets is very useful for several business logics that are suited to be solved with functional programming (distributed payload, weight balance...).

Useful feature?

Owner

jashkenas commented Jun 8, 2012

Not useful enough to merit inclusion in core Underscore, but a great idea for an _.mixin function.

@jashkenas jashkenas closed this Jun 8, 2012

Collaborator

knowtheory commented Jun 8, 2012

Hey @rafaelbandeira3 could you be a bit more specific? What exactly are you looking for as the inputs and outputs for a _.subsets function?

I wonder if it wouldn't be better to build more complicated combinatoric functions should into a library that depends on underscore rather than building it into underscore itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment