Find in an array of custom structs if we have an element with a specific field value or not

Nice and fast, here is a similar one too:

any(s.k==3 for s in A)
3 Likes