[Haskell-beginners] The (x:xs) in function parameter is a tuple?

Imants Cekusins imantc at gmail.com
Wed Feb 24 10:45:23 UTC 2016


Hello Xiao,

(one_element)             -- is evaluation
(element,element,...)    -- is tuple

(1:[2])     -- [1,2] because it is one "array element"
(1,2)      -- is a tuple because there are 2 elements


More information about the Beginners mailing list