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 RAA16486; Wed, 28 Apr 2004 17:15:26 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA16474 for ; Wed, 28 Apr 2004 17:15:24 +0200 (MET DST) Received: from gatekeeper.elmer.external.excelhustler.com (gatekeeper.excelhustler.com [68.99.114.105]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i3SFFNjq027109 for ; Wed, 28 Apr 2004 17:15:23 +0200 Received: from chatterbox.elmer.internal.excelhustler.com (unknown [192.168.0.12]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "chatterbox.elmer.internal.excelhustler.com", Issuer "excelhustler.com" (not verified)) by gatekeeper.elmer.external.excelhustler.com (Postfix) with ESMTP id 4287DE00E9; Wed, 28 Apr 2004 10:15:22 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by chatterbox.elmer.internal.excelhustler.com (Postfix) with ESMTP id C81ED5C006; Wed, 28 Apr 2004 10:15:21 -0500 (CDT) Received: from wile.internal.excelhustler.com (wile.internal.excelhustler.com [192.168.1.34]) by chatterbox.elmer.internal.excelhustler.com (Postfix) with ESMTP id 48E555C005; Wed, 28 Apr 2004 10:15:21 -0500 (CDT) Received: by wile.internal.excelhustler.com (Postfix, from userid 1000) id 0F5E633074; Wed, 28 Apr 2004 10:15:21 -0500 (CDT) Date: Wed, 28 Apr 2004 10:15:21 -0500 From: John Goerzen To: Jon Harrop Cc: caml-list@inria.fr Subject: Re: [Caml-list] [ANN] The Missing Library Message-ID: <20040428151521.GB1310@excelhustler.com> References: <200404280613.19547.jdh30@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404280613.19547.jdh30@cam.ac.uk> User-Agent: Mutt/1.5.5.1+cvs20040105i X-Scanned-By: clamscan at chatterbox.elmer.internal.excelhustler.com X-Miltered: at nez-perce by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 2004:99 iterator:01 truncate:01 iterator:01 complexity:02 match:02 fewer:02 iterators:02 iterators:02 necessarily:02 wrote:03 wrote:03 library:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Apr 28, 2004 at 06:13:19AM +0100, Jon Harrop wrote: > On Wednesday 28 April 2004 5:31 am, Brian Hurt wrote: > > It's been too long since I've used the STL- what data structures and > > algorithms does it provide? > > The main thing is that it is iterator-centric, so you pass iterators around > instead of containers. For example, to represent a subarray without having to > copy it. These iterators are classified according to their abilities (e.g. That's not necessarily a good thing. For one, it leads to complexity. What if you modify the parent array? Would the iterator show the new or original values? What if you truncate the parent? Would the iterator produce fewer results than it originally promised? And of course, you can't so nicely use iterators in match clauses like you can lists. ------------------- 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