I think filter
and a closure is perfectly idiomatic. If you want the indices, you can use findall
.
The find*
family of functions underwent an API redesign, you are doing the right thing when using v0.7
for upgrading your code, after which you can switch to v1.0
.