All Questions
2 questions
7
votes
7
answers
704
views
Grouping consecutive elements at specified positions
Let
L1={1,2,4,6,8,9,10,14,15,17,21,22,72,76,80,96,106,116,117}
Question1) Group from 10-th to 14-th elements in L1.
So that the ...
7
votes
4
answers
452
views
AnyTrue is too good (compared to MemberQ)
Let L be a list of integers, and ⓝ denote an explicit integer.
I've thought the most natural way to tell whether ⓝ belongs to L is
In[1] MemberQ[L, ⓝ]
But there ...