Dictionary-like data structure representing a bijective map?

I found one!

https://github.com/scheinerman/Bijections.jl

For reference, here’s the syntax used by Bijections.jl:

julia> b = Bijection(:a, 1)
Bijection{Symbol,Int64} (with 1 pairs)

julia> b[:a]
1

julia> b(1)
:a
6 Likes