special ()

2 views
Skip to first unread message

wenshe...@gmail.com

unread,
Oct 5, 2006, 11:02:17 PM10/5/06
to haskell.cn
Prelude> [[[]]]
[[[]]]
Prelude> ((()))
()
Prelude> :t [[[]]]
[[[]]] :: [[[a]]]
Prelude> :t ((()))
((())) :: ()
Prelude> ((),())
((),())
Prelude> ((),(),((),()))
((),(),((),()))
Prelude> ((((),())))
((),())
Prelude>

So if there's only a single element, (a) is a

Reply all
Reply to author
Forward
0 new messages