Skip to content
New issue

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

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

Already on GitHub? # to your account

Implement method SeparateByEqualParts() for separating list of elements to equal parts #106

Closed
Tim55667757 opened this issue Dec 2, 2022 · 1 comment
Assignees
Labels
Task A small task or improvements
Milestone

Comments

@Tim55667757
Copy link
Owner

Screenshot 2022-12-02 at 13 48 05

Example:

SeparateByEqualParts(elements=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], parts=2) -> [[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]
SeparateByEqualParts(elements=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], parts=2, union=True) -> [[0, 1, 2, 3, 4], [5, 6, 7, 8, 9, 10]]
SeparateByEqualParts(elements=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], parts=2, union=False) -> [[0, 1, 2, 3, 4], [5, 6, 7, 8, 9], [10]]]

@Tim55667757 Tim55667757 added the Task A small task or improvements label Dec 2, 2022
@Tim55667757 Tim55667757 added this to the release-1.6 milestone Dec 2, 2022
@Tim55667757 Tim55667757 self-assigned this Dec 2, 2022
Tim55667757 added a commit that referenced this issue Dec 3, 2022
@Tim55667757
Copy link
Owner Author

Tim55667757 commented Dec 3, 2022

Implemented since v 1.6.dev132

Debug build: https://app.travis-ci.com/github/Tim55667757/TKSBrokerAPI/builds/258459235
Artefact in PyPI for testing: https://pypi.org/project/tksbrokerapi/1.6.dev132/

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Task A small task or improvements
Projects
None yet
Development

No branches or pull requests

1 participant