1
vote
3answers
92 views

Detecting the existence of an element in a subarray with specific properties

If I have an array that looks like this: ...
0
votes
1answer
143 views

Find if element exists in N-dimensional array

I was wondering if there was a more elegant way of finding whether an element exists in an N-dimensional array. The way I would do it is: ...