From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA25759; Wed, 17 Jul 2002 09:19:34 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA25743 for ; Wed, 17 Jul 2002 09:19:33 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6H7JXX07402 for ; Wed, 17 Jul 2002 09:19:33 +0200 (MET DST) Received: (from fpottier@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA25808 for caml-list@inria.fr; Wed, 17 Jul 2002 09:19:32 +0200 (MET DST) Date: Wed, 17 Jul 2002 09:19:32 +0200 From: Francois Pottier To: caml-list@inria.fr Subject: Re: [Caml-list] Queue.fold? Message-ID: <20020717091932.A25636@pauillac.inria.fr> Reply-To: Francois.Pottier@inria.fr References: <3D347E79.7060002@baretta.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i In-Reply-To: <3D347E79.7060002@baretta.com>; from alex@baretta.com on Tue, Jul 16, 2002 at 10:13:45PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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). -- François Pottier Francois.Pottier@inria.fr http://pauillac.inria.fr/~fpottier/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners