Skip to content

returns excess combinations if min/max are the same #11

@kurttheviking

Description

@kurttheviking
var combinations = require('combinations');
var arr = ['red', 'orange', 'yellow', 'green'];

combinations(arr, 2, 2)

Yields 12 combinations, including some that have 3 elements. Was expecting an array of size 6, with each result having exactly 2 elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions