[Haskell-cafe] Spot the difference!

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Thu Sep 20 00:18:21 EDT 2007

On Sep 20, 2007, at 0:16 , PR Stanley wrote:

> I must confess that the use of "\_" had me a little confused at  
> first but thinking about it I can see that it makes perfect sense  
> to have an argument or a wildcard character for any value.

Sure.  Remember, arguments are pattern matches in Haskell (the  
degenerate case being a variable name which is an irrefutable match  
resulting in a lambda binding).  As such, it's useful to have a  
wildcard pattern which matches irrefutably without binding.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list