Hello
I am struggling to understand how Position and Select work when using patterns. Although I've got many examples right (thanks to the help of the members of this list) I still get stuck trying to find the right pattern (rule?) for some examples.
list={{y3}, {y0 y3, y3}, {y0 y1 y3, y1 y3}, {}}
I need to find the position of {y3} so I tried
Position[list, _?((Length[#] == 1 &) \[And] (MemberQ[#, y3] &))]
but it didn't work. I am definitely missing something since ((Length[lista[[1]]] == 1) \[And] ( MemberQ[lista[[1]], y3]))
returns true as expected. Please tell what I am missing.
Many thanks
Cheers
Ed