Consider building a map of key | whatever else needs to happen
- unless you’re comparing like 3 things only.
Also, this is a somewhat unorthodox request and I have a nagging feeling you might be approaching it from a strange angle. Hard to advise without knowing more, though.