"Getting Pieces of Lists"
discusses how to extract pieces of lists based on their positions or indices. Mathematica
also has functions that search and test for elements of lists, based on the values of those elements.
As discussed in "Finding Expressions That Match a Pattern"
, the functions Count
, as well as MemberQ
, can be used not only to search for particular
list elements, but also to search for classes of elements which match specific "patterns".