[Haskell-beginners] The (x:xs) in function parameter is a tuple?
max.voit+mlhb at with-eyes.net
Thu Feb 25 15:14:05 UTC 2016
On Thu, 25 Feb 2016 07:49:56 +0800
Nan Xiao <xiaonan830818 at gmail.com> wrote:
> Rein referred "A tuple can have any number of elements", while Graham
> referred "There's no "one-ple", or 1-tuple, in Haskell.". So which one
> is right? The tuple at least contains 2 elements?
There is no one-tuple; however, there's a zero-tuple. Also no arbitrary
number of tuple elements allowed, due to definition (we're at 61 for
some reason). Refer to
More information about the Beginners