A recurring pattern (for me) are integers mapped to integers, e.g. k->v, and v->k, and I often need random lookup of one to the other and back.
Usually solved in diy mode with paired dictionaries, or dedicated multimap datastructures. In Julia, there's a neat library called Bijections.jl which does exactly that, it captures a 1-1 mapping between two sets. https://juliacollections.github.io/Bijections.jl/stable/ #julia #JuliaComputing #scientificcomputing
Getting Started · Bijections.jl

Documentation for Bijections.jl.