montagejs / collections

This package contains JavaScript implementations of common data structures with idiomatic interfaces.
http://www.collectionsjs.com
Other
2.09k stars 185 forks source link

Confusing "Choose a collection" choice: "ordered and iterable" #180

Open mhelvens opened 7 years ago

mhelvens commented 7 years ago

On www.collectionsjs.com I was momentarily confused when confronted with the checkbox:

[ ] Should be ordered and iterable.

Because I wanted a set that was iterable (which is to say: not a WeakSet), but I did not need it to be ordered in any particular way. Upon investigation I found out that leaving the box unchecked recommends FastSet, which is still iterable.

So shouldn't the checkbox just say:

[ ] Should be ordered