Created
March 30, 2017 15:21
-
-
Save leojpod/c95e0f0127558b5bb53cced6db0218ce to your computer and use it in GitHub Desktop.
the evil _
This file contains 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
-- make some treatment on the tasks | |
toString: Item -> String | |
toString person item = | |
case item of | |
Task p -> ("task assigned to " ++ p.assignee) | |
_ -> "default printing" | |
-- note that we cannot access the Prop record of our items in the _ case |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment