I'm working on a project where I would like to compare collections of words, but I have additional constraints I need to account for.
The collections are like a set in that order doesn't matter for the comparison.
However, in my problem equal elements are significant.
E.g. the collection of "foo", "bar", "baz" would not be the same as the collection of "baz", "foo", "bar", "baz".
However, the collection of "baz", "foo", "bar", "baz" would be the same as the collection of "bar", "baz", "foo", "baz".
Additionally, the collection itself must be hashable.
Thank you for reading.