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 MAA19539; Sun, 27 Jun 2004 12:11:27 +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 MAA19560 for ; Sun, 27 Jun 2004 12:11:26 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i5RABPEV003662 for ; Sun, 27 Jun 2004 12:11:25 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BeWdA-0007ga-00 for ; Sun, 27 Jun 2004 11:11:24 +0100 Date: Sun, 27 Jun 2004 11:11:24 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] Pattern matching over elements at the front of a container Message-ID: <20040627101124.GA29390@redhat.com> References: <200406261215.26971.postmaster@jdh30.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200406261215.26971.postmaster@jdh30.plus.com> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at nez-perce with ID 40DE9D4D.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 dbi:99 threads:01 ltd:98 match:02 match:02 library:03 efficient:05 investment:94 str:05 str:05 pattern:06 pattern:06 notation:06 matching:08 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Also, being able to pattern match on substrings would be useful, if a notation could be introduced for it. Something like: match str with "prefix" ^ str -> ... Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment PTHRLIB is a library for writing small, efficient and fast servers in C. HTTP, CGI, DBI, lightweight threads: http://www.annexia.org/freeware/pthrlib/ ------------------- 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