On 5/13/2013 9:58 AM, ErichSt wrote:
> While I do understand that in the general case, hasItem() may take
> longer than hasIndex(): in the case of Set, shouldn't those two
> methods behave the same?
Well, the doc does say they're inherited from Table, not overridden by
Set. But yeah, it sure would be nice--in SetCollection, all the methods
that work on items could just be forwarded to their index counterparts:
allItems -> allIndexes
hasItem -> hasIndex
index -> at
removeItem -> remove
Similarly, in Bag, allIndex could be forwarded to allAt.
�R