Created
May 19, 2013 07:13
-
-
Save davidxifeng/5606948 to your computer and use it in GitHub Desktop.
haskell ADT
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
c = let x = 0 : y | |
y = 1 : x | |
in | |
x | |
-- c [0,1,0,1...] | |
-- 这种技巧是用来使用data来实现图,双向链表等结构的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment