logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: List: msg#00002

Subject: Re: List


On Sun, 2 Oct 2005, Bill Wood wrote:

(Hi, it's me again :-)  Is there a compelling reason why map2, iter2,
fold_left2, fold_right2, for_all2, exists2 and combine require their two
list arguments to be of the same length?  Analogous functions in Common
Lisp, Haskell and SML (zip vs zipEq) don't make that restriction.

That was the behavior of those functions in the standard library. Basically, the contact was that the code should behave identically, just faster. I.e. if the standard library threw a given exception in a given case, ExtLib would throw the exact same exception. This allows ExtLib to be a drop-in replacement for the standard library.

Brian



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl


<Prev in Thread] Current Thread [Next in Thread>