
10 Oct
2008
10 Oct
'08
4:51 a.m.
"Daryoush Mehrtash"
What is the difference between empty list [] and list with one unit element [()]?
Prelude> :m + Data.List Prelude Data.List> []\\[()] [] or, for completeness, the difference between a list with one unit element and the empty list: Prelude Data.List> [()]\\[] [()] :-P -- Jón Fairbairn Jon.Fairbairn@cl.cam.ac.uk