I have a list of the form
{
{{1, 2}, 0.395},
{{1, 3}, ∞},
{{1, 4}, ∞},
{{2, 3}, 1},
{{2, 4}, ∞},
{{3, 4}, ∞}
}
and I hope to find the elements whose list contains 2 or 3. Namely the return should be
{{1},{2},{4},{5},{6}}
I tried
Position[binaryCollisionTime, _?(ContainsAny[#[[1]], {2, 3}] &)]
but it gives errors but I am not sure why.