I have an array of arrays.
def my_array = [[null], [10382], [11901], [null], [10386], [10385], [11901], [10386], [11901], [10386], [3], [null], [10504], [3]]
I want to find the index of the FIRST occurrence of an element, for example [3].
I am using findIndexOf.
def index = my_array.findIndexOf { it == [3] }
However, this returns -1. I think this is the index of the element in array [3] not in array my_array. How do I get the index of the element [3] in the my_array?