Refs as keys in Map

Hey. Any suggestions on a Map where keys can be Refs? Neither Keyword list nor Map support Refs as keys.

Maps seem to work:

iex(1)> ref = make_ref
#Reference<0.4189509927.3749445633.187382>
iex(2)> %{ref => "its there"}
%{#Reference<0.4189509927.3749445633.187382> => "its there"}
iex(3)> v(2)[ref]
"its there"
2 Likes

eeeh… weird. Yesterday in the night it didn’t work!!! :grin: