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

[Collections\combine] should follow the rule: C[n:k] = 0, for k > n #1605

Open
github-actions bot opened this issue Apr 17, 2024 · 0 comments
Open

[Collections\combine] should follow the rule: C[n:k] = 0, for k > n #1605

github-actions bot opened this issue Apr 17, 2024 · 0 comments
Labels
library Issues related to the standard library open-discussion todo Automatically generated issues from TODOs in the code

Comments

@github-actions
Copy link

[Collections\combine] should follow the rule: C[n:k] = 0, for k > n
being k the attribute by, n the size of the collection and
C the amount of possible combinations:

ensure -> empty? combine.by: 4 [a b c] 
ensure -> empty? combine.by: 5 [a b c] 
ensure -> empty? combine.by: 6 [a b c] 

# TODO(Collections\combine) should follow the rule: C[n:k] = 0, for k > n

    # TODO(Collections\combine) should also work with in-place Literals?
    #  labels: library, enhancement, open discussion

    # TODO(Collections\combine) should follow the rule: C[n:k] = 0, for k > n
    #  being k the attribute by, n the size of the collection and 
    #  C the amount of possible combinations:
    #
    #  ```art
    #  ensure -> empty? combine.by: 4 [a b c] 
    #  ensure -> empty? combine.by: 5 [a b c] 
    #  ensure -> empty? combine.by: 6 [a b c] 
    #  ``` 
    # labels: library, open-discussion
    builtin "combine",
        alias       = unaliased,
        op          = opNop,
ndex b034d7e282..de0238fc99 100644
++ b/src/library/Comparison.nim

80f39a47d62f96ec111e3e0307355f88c2d8afb3

@github-actions github-actions bot added library Issues related to the standard library todo Automatically generated issues from TODOs in the code open-discussion labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
library Issues related to the standard library open-discussion todo Automatically generated issues from TODOs in the code
Projects
None yet
Development

No branches or pull requests

0 participants