I have a list of 1000 sublists and each sublist is length 400. I'd like to produce a new set containing only those sublists where element 25, 75 and 250 satisfy some criteria. The following works on sublists of length 3 with some toy criteria:
Cases[set, {a_, b_, c_} /; 1 < a < 5 && 0 < b < 4 && 4 < c < 8]
, where set
is the list of 1000 sublists.
How may I construct a list similar to {a_,b_,c_}
but that is instead 400 elements? That is I want to produce a list like {a1_,a2_,a3_,....,a400_}
. Probably it's simple but I've been playing about with array and Append etc. and not found a way.
Select
with the selecting funtion that directly accesses the values of the sublist. $\endgroup$