2 ms·
There's a few different aspects to your question. > For example, you might specify that you require collection to be indexed with numbers... You can't hide th
by AnimalMuppet 5y ago
There's a few different aspects to your question.
> For example, you might specify that you require collection to be indexed with numbers...
You can't hide that, because in at least some of the uses of that collection, you're going to index it by numbers.
Other than that kind of detail, though, I think you can create collections that you can use without knowing the details in Haskell. To a lesser degree, you can in C++.
The last detail is creation. You might be able to create a "collection factory" to create it for you. But I'm not sure that it's any different to say "CollectionFactory.createCollection(FAST_FIND)" than it is to say "new HashMap()". I mean, the former means that you don't have to know that a HashMap is the collection you're looking for, so that's something. It's not all that much, though.
- scotty79 5y agoBut I want to be able to say: CollectionFactory.createCollectionFast(FIND<string>, FIND<int>, STACK_ACCESS, KEEP_INSERTION_ORDER, REVERSIBLE) This might require resulting collection to use multiple data structures in parallel to provide me with all the fast capabilities I listed.