[Haskell-cafe] [] vs [()]

Don Stewart dons at galois.com
Fri Oct 10 00:18:51 EDT 2008


dmehrtash:
>    What is the difference between empty list [] and list with one unit
>    element [()]?

    Prelude> length []
    0
    Prelude> length [()]
    1

:-)

-- Don


More information about the Haskell-Cafe mailing list