params ["_array", "_value", ["_column", 0]]; private _index = {if(_x param [_column] isEqualTo _value) exitWith {_forEachIndex};} forEach _array; [_index, -1] select (isNil"_index");
This way is even faster.
params ["_array", "_value", ["_column", 0]]; private _index = {if(_x param [_column] isEqualTo _value) exitWith {_forEachIndex};} forEach _array; [_index, -1] select (isNil"_index");
This way is even faster.
Here is another way to code this function, proposed by Sa-Matra and this way is 20-25% faster:
Please disregard this post, i managed to make it work.