Created
July 20, 2019 11:37
-
-
Save mrcrilly/6d024c93a67f4907f27bef3056e88730 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Colour = String | |
type ColourPoint = (Int, Int, Colour) | |
c1 = (10, 10, "red") | |
c2 = (90, 90, "yellow") | |
colourOfPoint (x, y, c) = c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Colour = String | |
type ColourPoint = (Int, Int, Colour) | |
c1 = (10, 10, "red") | |
c2 = (90, 90, "yellow") | |
colourOfPoint :: ColourPoint -> String | |
colourOfPoint (x, y, c) = c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment