Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Queue.fold?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alessandro Baretta <alex@b...>
Subject: Re: [Caml-list] Queue.fold?
Francois Pottier wrote:
>>Is there any specific reason for not having a Queue.fold 
>>function in the standard library?
> Your version of fold empties the queue as a side effect, which is
> usually not part of the semantics of fold.
> That said, there is an implementation of Queue.fold in the CVS version of
> O'Caml (along with a slightly more efficient implementation of all Queue
> functions).

Give me O'Caml 3.05! Please...

Thank you for pointing out the nasty side-effects of my 
implementation. Now I fixed it.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: