[Haskell-cafe] basic haskell question
wenduan
xuwenduan2010 at gmail.com
Sun May 22 12:50:36 EDT 2005
hi,
Anybody could please tell me that in the following two expressions what
value does the [] take?
foldl (/) 3 []
foldr (/) 3 []
when both of them are evaluated I got 3.0,but I thought I could get
nothing out of there,cause its an empty list,does Haskell assume any
default value for a empty list?
--
-------------------------------------------------------------------------------------------------------
If you didn't succeed at the first attempt, you are just about average.
More information about the Haskell-Cafe
mailing list