Skip to content

Instantly share code, notes, and snippets.

@reite
Created May 10, 2013 20:34
Show Gist options
  • Save reite/5557181 to your computer and use it in GitHub Desktop.
Save reite/5557181 to your computer and use it in GitHub Desktop.
type Point = (Int, Int) -- Could have more elements
type Range = (Int, Int)
pointsInRanges :: Range -> Range -> [Point] -> [Point] -- All points where fst p is in the first range and snd p is in the second range.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment