Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum > General > > "Cases"

Post Reply:
Name:
Email Address:

Please send email when my message is replied to.

Url (optional):
Subject:
Message: view original message?
Attachment (optional):
Please answer this:6+3 =



Original Message (ID '91791') By Bill Simpson:
In[1]:= ss={{H[1],M[1],M[2]},{H[2],H[1],M[2]},{M[1],H[1],H[2]},{H[2],M[2],M[1]}}; Cases[ss,u_/;Head[u[[1]]]==H&&Head[u[[2]]]==M] Out[2]= {{H[1],M[1],M[2]},{H[2],M[2],M[1]}}