I have a list of pairs of numbers, and I would like to remove all pairs for which the first element in the pair is below a specified value. For instance:
list = {{-2, 3}, {0, 3}, {2, 3}, {2, -1}, {-1, 1.2}}
Removing all pairs for which the first element in each pair is less than 1 would give:
{{2, 3}, {2, -1}}
How do I accomplish this? I assume Select
or DeleteCases
can be used. Something like
DeleteCases[{{-2, 3}, {0, 3}, {2, 3}, {2, -1}, {-1, 1.2}}, {LessThan[1],_}]
but that doesn't work. Thanks in advance.