Skip to content

Instantly share code, notes, and snippets.

@semeltheone
Created February 5, 2015 07:21
Show Gist options
  • Save semeltheone/25f9ca17798a74eb0d1d to your computer and use it in GitHub Desktop.
Save semeltheone/25f9ca17798a74eb0d1d to your computer and use it in GitHub Desktop.
Find cases using a Condition
l = {{5, 6, 7}, {5, 4, 7}}
Cases[l, {_, x_ /; x > 5, _}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment