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 AAA24346; Mon, 11 Aug 2003 00:16:10 +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 AAA02074 for ; Mon, 11 Aug 2003 00:16:09 +0200 (MET DST) Received: from speakeasy.org (dsl081-017-141.sea1.dsl.speakeasy.net [64.81.17.141]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h7AMG7T14389 for ; Mon, 11 Aug 2003 00:16:08 +0200 (MET DST) Received: (from shawnw@localhost) by speakeasy.org (8.10.1/8.10.1) id h7AMTqw14545 for caml-list@inria.fr; Sun, 10 Aug 2003 15:29:52 -0700 Date: Sun, 10 Aug 2003 15:29:51 -0700 From: Shawn Wagner To: caml-list@inria.fr Subject: Re: [Caml-list] Array.filter (was Multi-keyed lookup table?) Message-ID: <20030810222951.GO32566@speakeasy.org> Mail-Followup-To: caml-list@inria.fr References: <005d01c35e51$7c927200$6628f9c1@zofo> <20030809165720.GE21525@swordfish> <20030809184851.GA946@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030809184851.GA946@localhost> User-Agent: Mutt/1.4.1i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; shawnw:01 caml-list:01 ijtrotts:01 0600,:01 gushee:01 implemented:01 apis:01 shameless:01 c's:01 raevnos:01 pennmush:01 extlib:01 arrays:01 ocaml:01 0700,:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, Aug 09, 2003 at 11:48:51AM -0700, ijtrotts@ucdavis.edu wrote: > On Sat, Aug 09, 2003 at 10:57:20AM -0600, Matt Gushee wrote: > > On Sat, Aug 09, 2003 at 10:36:06AM +0200, Jean-Baptiste Rouquier wrote: > > > >BTW, why isn't there an Array.filter function? > > > There is a lot of such general purpose functions that one would like to have > > > already implemented. But having all of these in the standard library would > > > make it less readable. > > > > Sure. I just thought that lists and arrays are rather similar data > > structures, and to the extent that they are similar, their respective > > modules should have similar APIs. > > It might help to create a file (mods.ml) with your favorite additions > and modifications to the standard library. Then you can open Mods > in any files where the modifications are needed. > Shameless plug: I have a library that's little more than this. Simple, basic things missing from the standard libraries that I keep running across a need for. Other people no doubt do the same, as there is a lot missing from the standard library (Even such fundamental things as searching for a substring a la C's strstr()!) http://raevnos.pennmush.org/code/ocaml.html#extlib -- Shawn Wagner shawnw@speakeasy.org ------------------- 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