- 関数型プログラミング言語Haskell Part27_©2ch.net
749 :デフォルトの名無しさん[]:2015/03/02(月) 09:57:42.00 ID:oxqFLeZk - data BinTree a = Empty | Node{val :: a, left :: BinTree a, right :: BinTree a} deriving Show
newtype BinSrchTree a = BS (BinTree a) deriving Show main = print (BS Empty :: BinSrchTree Int) ghci> main BS Empty
|
|