[Haskell-beginners] pattern x:xs

Brandon Allbery allbery.b at gmail.com
Fri Aug 12 01:49:34 CEST 2011


On Thu, Aug 11, 2011 at 09:37, Luca Ciciriello
<luca_ciciriello at hotmail.com>wrote:

> Is it possible to use the pattern (x:xs) using a parallel array [::]?
>

If it's there at all, I would expect the syntax to be as (:) is to [,]:
 (:x:xs:).  That said, normal arrays have no such syntax, so parallel arrays
may not either.  (Then again, normal arrays don't even have an equivalent of
[: :]; you have to marshal/demarshal from a list.)

-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110811/aba0b627/attachment.htm>


More information about the Beginners mailing list