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 AAA06907; Mon, 27 Jan 2003 00:25:59 +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 AAA06904 for ; Mon, 27 Jan 2003 00:25:38 +0100 (MET) Received: from comtv.ru (comtv.ru [217.10.32.4]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h0QNPbr19846 for ; Mon, 27 Jan 2003 00:25:37 +0100 (MET) Received: from [10.0.66.9] ([10.0.66.9] verified) by comtv.ru (CommuniGate Pro SMTP 4.0.3) with ESMTP id 6687071; Mon, 27 Jan 2003 02:25:35 +0300 Date: Mon, 27 Jan 2003 02:27:08 +0300 (MSK) From: malc X-X-Sender: malc@home.oyster.ru To: Oliver Bandel cc: caml-list@inria.fr Subject: Re: [Caml-list] Discarding elements from a list In-Reply-To: <20030126192839.GA486@first.in-berlin.de> Message-ID: References: <20030126190116.GA360@first.in-berlin.de> <20030126192839.GA486@first.in-berlin.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sun, 26 Jan 2003, Oliver Bandel wrote: > On Sun, Jan 26, 2003 at 08:01:16PM +0100, Oliver Bandel wrote: > [...] > > OK, I've found a very simple solution. :) > > OK, it is functional programming..... > > OK, it is Ocaml... > > OK, I use pattern matching.... > > > OK, this is my solution: > > > > let discard_first lis = match lis with > [] -> [] > | hd::tl -> tl > Good! But how about List.tl? -- mailto:malc@pulsesoft.com ------------------- 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