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
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