Created
April 1, 2015 11:33
-
-
Save shigemk2/d4132acf0f4a2194b5c0 to your computer and use it in GitHub Desktop.
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
-- 結合性 | |
infixr 5 :-: | |
data List a = Empty | a :-: (List a) deriving (Show, Read, Eq, Ord) | |
main = do | |
print $ 3 :-: 4 :-: 5 :-: Empty | |
let a = 3 :-: 4 :-: 5 :-: Empty | |
print $ 100 :-: a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment