[
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: | 2003-01-26 (23:25) |
From: | malc <malc@p...> |
Subject: | Re: [Caml-list] Discarding elements from a list |
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