Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created September 9, 2017 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/806c3cf3729bb48a8e7a798267a62bf8 to your computer and use it in GitHub Desktop.
Save deque-blog/806c3cf3729bb48a8e7a798267a62bf8 to your computer and use it in GitHub Desktop.
intersect :: Shape coord -> Shape coord -> Shape coord
intersect s1 s2 =
Shape $ \coord -> isInShape s1 coord && isInShape s2 coord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment