Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I think the canonical way would be to use an "any" function which you can find in thisthis question. Using a variant of my answermy answer, you can use
MemberQ[list, _?Positive]
to check if any element is positive.
I think the canonical way would be to use an "any" function which you can find in this question. Using a variant of my answer, you can use
MemberQ[list, _?Positive]
to check if any element is positive.
I think the canonical way would be to use an "any" function which you can find in this question. Using a variant of my answer, you can use