On Thu, 15 Sep 2005, Joel Reymont wrote:
What is the meaning of xxs@(x:xs) in the code below?
I understand that x:xs is a list /head:tail/ but a tuple of (x:xs) does not
make sense.
It's not a tuple, it's just the usual meaning for parens.
--
[EMAIL PROTECTED]
The task of the academic is
What is the meaning of xxs@(x:xs) in the code below?
I understand that x:xs is a list /head:tail/ but a tuple of (x:xs)
does not make sense.
main = print (take 1000 hamming)
hamming = 1 : map (2*) hamming ~~ map (3*) hamming ~~ map (5*)
hamming
where
xxs@(x:xs) ~~ y
metaperl posted about this on the Haskell Sequence this morning and I
thought all of you list readers might be interested as well.
Autrijus Tang is well-known for developing the first working Perl 6
interpreter, Pugs. Pugs is written in Haskell. Perl.com has an
interview with Autrijus, and page 2