Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple grouped product items feature #4

Open
sekgobela-kevin opened this issue Oct 30, 2022 · 0 comments
Open

Multiple grouped product items feature #4

sekgobela-kevin opened this issue Oct 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@sekgobela-kevin
Copy link
Owner

sekgobela-kevin commented Oct 30, 2022

This is related to issue #17 of perock which was not added to prodius.
This issue depends on issue #3 as grouped cartesian product is not yet available in broote.

What needed is to have multiple grouped items alternating each other over waiting for each other.
As already said, this feature may depend on issue #3 which is not yet implemented.

BEFORE:

prodius.product([0,1], [2,3]) -> [(0, 2), [0, 3), (1,2), (1,3)]

AFTER:

prodius.product([2,3], group=[0,1], max_multiple=2) -> [(0, 2), [1, 2), (0,3), (1,3)]

group argument as in #3 causes product results to be grouped but here they are not.
max_multiple argument should create new iterable that flattens everything back normal.

Realise that results are similar but not differ by order.

@sekgobela-kevin sekgobela-kevin added the enhancement New feature or request label Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant