Ada Gem #5 --- Sets are containers of elements. Like all containers, they are searchable, and given an element value you can find the element in the set equivalent to that value. For some applications, element equivalence is determined by just a part of the element (its "key" part), and it is often necessary to find an element given only a key value. A technique is presented here for key-based searching of elements in set containers.
/lp/association-for-computing-machinery/gem-5-key-based-searching-in-set-containers-NkJzYm3XOA