# How to obtain indices of an array satisfying boolean condition

**URL:** <https://discourse.julialang.org/t/how-to-obtain-indices-of-an-array-satisfying-boolean-condition/37780>\
**Category:** New to Julia\
**Created:** [April 17, 2020, 7:41pm UTC](https://discourse.julialang.org/t/how-to-obtain-indices-of-an-array-satisfying-boolean-condition/37780 "2020-04-17T19:41:07Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Gus\_Hart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gus_hart/32/6987_2.png) [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Post date:** [December 1, 2022, 5:23pm UTC](https://discourse.julialang.org/t/how-to-obtain-indices-of-an-array-satisfying-boolean-condition/37780/21 "2022-12-01T17:23:10Z")

</div>

And your post led me to look at the `contains` documentation. It also has a single argument version since julia 1.5. That’s going to make some of my code a little cleaner (not needing the anonymous functions any more [if that is what they are called])

[Previous page](https://discourse.julialang.org/t/how-to-obtain-indices-of-an-array-satisfying-boolean-condition/37780.md?page=1)
