# Dictionary-like data structure representing a bijective map?

**URL:** <https://discourse.julialang.org/t/dictionary-like-data-structure-representing-a-bijective-map/45341>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 21, 2020, 10:10pm UTC](https://discourse.julialang.org/t/dictionary-like-data-structure-representing-a-bijective-map/45341 "2020-08-21T22:10:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [August 21, 2020, 10:17pm UTC](https://discourse.julialang.org/t/dictionary-like-data-structure-representing-a-bijective-map/45341/2 "2020-08-21T22:17:10Z")

</div>

I found one!

[https://github.com/scheinerman/Bijections.jl](https://github.com/scheinerman/Bijections.jl)

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

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

julia> b[:a]
1

julia> b(1)
:a

```

---

_[View the full topic](https://discourse.julialang.org/t/dictionary-like-data-structure-representing-a-bijective-map/45341)._
