# Findfirst for Dicts with \`nothing\` keys

**URL:** <https://discourse.julialang.org/t/findfirst-for-dicts-with-nothing-keys/9432>\
**Category:** General Usage\
**Created:** [March 1, 2018, 10:10pm UTC](https://discourse.julialang.org/t/findfirst-for-dicts-with-nothing-keys/9432 "2018-03-01T22:10:23Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![jeff.bezanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jeff.bezanson/32/48_2.png) [@jeff.bezanson](https://discourse.julialang.org/u/jeff.bezanson)\
**Post date:** [March 2, 2018, 5:28pm UTC](https://discourse.julialang.org/t/findfirst-for-dicts-with-nothing-keys/9432/24 "2018-03-02T17:28:12Z")

</div>

This is incorrect. We optimize away tuples all the time. I don’t recall seeing a proposal to return a tuple with a `found` flag — did I miss it? If we’re going to “wrap” the result in some way, we could use `Some(x)`. For many people, the primary API concern is that they do not want to have to manually unwrap values to use them. But I agree `found, val = findfirst(...)` doesn’t seem so bad.

---

_[View the full topic](https://discourse.julialang.org/t/findfirst-for-dicts-with-nothing-keys/9432)._
