We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I came across this implementation of yours from here
Amazing article! For my understanding, I decided to write it in Clojure but fumbled upon one aspect of concat
A multiset can have repetitive keys
[('cat', 4), ('dog', 2), ('elephant', -4), ('elephant', 4)]
When implementing concat, how do I decide which keys to merge it against? For e.g.
[('cat', 4), ('dog', 2), ('elephant', -4), ('elephant', 4)].concat([('elephant', 1)])
has 3 possibilities
#1 [('cat', 4), ('dog', 2), ('elephant', -3), ('elephant', 4)] #2 [('cat', 4), ('dog', 2), ('elephant', -4), ('elephant', 5)] #3 [('cat', 4), ('dog', 2), ('elephant', -4), ('elephant', 4), ('elephant', 1)]
Now, I know it doesn't matter since consolidating them results in the same outcome, so what would be my basis to make a choice?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I came across this implementation of yours from here
Amazing article! For my understanding, I decided to write it in Clojure but fumbled upon one aspect of concat
A multiset can have repetitive keys
When implementing concat, how do I decide which keys to merge it against? For e.g.
has 3 possibilities
Now, I know it doesn't matter since consolidating them results in the same outcome, so what would be my basis to make a choice?
The text was updated successfully, but these errors were encountered: