# Is there a Hash-like data structure that's not referencing its own elements?

**URL:** <https://forum.crystal-lang.org/t/is-there-a-hash-like-data-structure-thats-not-referencing-its-own-elements/5556>\
**Category:** Help & Support\
**Created:** [April 12, 2023, 5:51pm UTC](https://forum.crystal-lang.org/t/is-there-a-hash-like-data-structure-thats-not-referencing-its-own-elements/5556 "2023-04-12T17:51:33Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![straight-shoota](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/straight-shoota/32/36_2.png) [@straight-shoota](https://forum.crystal-lang.org/u/straight-shoota)\
**Post date:** [April 25, 2023, 7:16pm UTC](https://forum.crystal-lang.org/t/is-there-a-hash-like-data-structure-thats-not-referencing-its-own-elements/5556/21 "2023-04-25T19:16:18Z")

</div>

Sorry, I just noticed the final expression in my previous comment was wrong: `hasher.hash(key_hasher)`. It needs to be the other way round: `key_hasher.hash(hasher)`. 🙈

---

_[View the full topic](https://forum.crystal-lang.org/t/is-there-a-hash-like-data-structure-thats-not-referencing-its-own-elements/5556)._
