Skip to content

Feature: n-dimensional product over the same iterator #264

Open
@lorepozo

Description

@lorepozo

So that code like this:

iproduct!(0..4, 0..4, 0..4)

becomes the more succinct:

iproduct!(0..4; 3)

This would mandate vectors instead of tuples for the items.
It would help for when the dimension isn't known until runtime:

fn truth_table(dim: usize)Box<Iterator<Item = Vec<bool>>> {
    Box::new(iproduct!([false, true].iter(); dim))
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions