"Daryoush Mehrtash" <[EMAIL PROTECTED]> writes:

> 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                                 [EMAIL PROTECTED]


_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to