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.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to