Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

I'm working on some pet project and I have a very large list of {x,y} pairs. I want to make a new list containing all {x,y} pairs where x is, let's say, even (I actually need something more complicated, but I assume same principle will apply). I just don't get how I'm even supposed to do it, Select doesn't work (or can't make it work) on pairs. I've read Select documentation but it seems I'm missing something essential.

share|improve this question

marked as duplicate by Yves Klett, rm -rf Jan 2 at 15:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Welcome to Mathematica SE. What you describe is so basic to Mathematica, it's clear you would benefit from examining the examples under Cases, Select. Also a tutorial on replacement and Rule would be helpful. –  David Carraher Jan 2 at 15:09

Browse other questions tagged or ask your own question.