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 UAA01961; Fri, 20 Feb 2004 20:44:55 +0100 (MET) 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 UAA01990 for ; Fri, 20 Feb 2004 20:44:53 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1KJiqae002749 for ; Fri, 20 Feb 2004 20:44:52 +0100 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AuGZt-0004Av-00; Fri, 20 Feb 2004 19:44:49 +0000 Date: Fri, 20 Feb 2004 19:44:49 +0000 To: Dustin Sallings Cc: caml-list@inria.fr Subject: Re: [Caml-list] [repost] Request for more String functions Message-ID: <20040220194449.GA15238@redhat.com> References: <20040220172813.GB8332@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i From: Richard Jones X-Miltered: at concorde 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 val:01 char:01 val:01 char:01 truncate:01 truncate:01 beginners:01 type-safe:01 ltd:98 bool:01 bool:01 ocaml:01 caml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Feb 20, 2004 at 11:34:39AM -0800, Dustin Sallings wrote: > val split : string -> char -> int -> string list > val split_chars : string -> char list -> int -> string list > val strstr : string -> string -> int -> int > val ends_with : string -> string -> bool > val begins_with : string -> string -> bool > val string_of_chars : char list -> string Yes, ends_with and begins_with - I keep copying those functions from file to file. It'd be great to have them in the std lib. Along with: List.truncate - returns the first N elements of a list String.truncate - truncate a string to a given length List.group_by - http://groups.yahoo.com/group/ocaml_beginners/message/1556 range : int -> int -> int list - produces a list of numbers from a to b let (//) = Filename.concat Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment MOD_CAML lets you run type-safe Objective CAML programs inside the Apache webserver. http://www.merjis.com/developers/mod_caml/ ------------------- 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