Skip to content

Instantly share code, notes, and snippets.

Bidirectional Map

The problem

Imagine you're working on a platform that manages some kind of orders. These orders are managed in different ways depending on its status. You get all possible statuses from server, but they are represented as an array of numbers (IDs).

Keybase proof

I hereby claim:

  • I am kolyamba2105 on github.
  • I am mharavetskyy (https://keybase.io/mharavetskyy) on keybase.
  • I have a public key whose fingerprint is BA44 89E5 C029 AFB8 F104 684C A590 5DC6 F2DC 659C

To claim this, I am signing this object: