Difference between revisions of "Singleton list confusion"
Jump to navigation
Jump to search
(further example, but same author) |
m |
||
Line 6: | Line 6: | ||
See for example |
See for example |
||
Haskell-Cafe about |
Haskell-Cafe about |
||
− | + | [http://www.haskell.org/pipermail/haskell-cafe/2008-April/041496.html testing for same characters in lists of strings], |
|
− | + | [http://www.haskell.org/pipermail/haskell-cafe/2008-April/041556.html Pattern match failure] |
|
[[Category:Syntax]] |
[[Category:Syntax]] |
Revision as of 15:47, 10 April 2008
Why do Haskell newcomers frequently believe, that list variables must be enclosed in brackets?
People sometimes write argument patterns like [x]
, hoping that x
will assume all values of a list successively.
Maybe it is some kind of list comprehension.
See for example Haskell-Cafe about testing for same characters in lists of strings, Pattern match failure