[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Shawn Wagner <shawnw@s...> |
| Subject: | Re: [Caml-list] Array.filter (was Multi-keyed lookup table?) |
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