Henning,

Why is Prelude.length not defined this way (according to the Haskell98
report)?

The Report itself answers your question (in Chapter 8):

"It constitutes a _specification_ for the Prelude. Many of the definitions are written with clarity rather than efficiency in mind, and it is not required that the specification be implemented as shown here."

Regards,

Stefan

_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to