<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/01/a68be086506e704ff7bd9066a5b771c8"
  from="malc &lt;malc@p...&gt;"
  author="malc"
  date="2003-01-26T23:25:59"
  subject="Re: [Caml-list] Discarding elements from a list"
  prev="2003/01/912f07947699893b4b8d26c231b9ebe9"
  next="2003/01/874b3b370b0e9f79e2b4b39bef346098"
  prev-in-thread="2003/01/912f07947699893b4b8d26c231b9ebe9"
  prev-thread="2003/01/2a90151cd7b925c19cbd206907343e50"
  next-thread="2003/01/874b3b370b0e9f79e2b4b39bef346098"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Discarding elements from a list">
<msg 
  url="2003/01/15cd7ca215908267fbf01507e08c168c"
  from="oliver@f..."
  author="oliver@f..."
  date="2003-01-26T19:00:08"
  subject="[Caml-list] Discarding elements from a list">
<msg 
  url="2003/01/912f07947699893b4b8d26c231b9ebe9"
  from="oliver@f..."
  author="oliver@f..."
  date="2003-01-26T19:35:04"
  subject="Re: [Caml-list] Discarding elements from a list">
<msg 
  url="2003/01/a68be086506e704ff7bd9066a5b771c8"
  from="malc &lt;malc@p...&gt;"
  author="malc"
  date="2003-01-26T23:25:59"
  subject="Re: [Caml-list] Discarding elements from a list">
</msg>
</msg>
</msg>
</thread>

<contents>
On Sun, 26 Jan 2003, Oliver Bandel wrote:

&gt; On Sun, Jan 26, 2003 at 08:01:16PM +0100, Oliver Bandel wrote:
&gt; [...]
&gt;
&gt; OK, I've found a very simple solution. :)
&gt;
&gt; OK, it is functional programming.....
&gt;
&gt; OK, it is Ocaml...
&gt;
&gt; OK, I use pattern matching....
&gt;
&gt;
&gt; OK, this is my solution:
&gt;
&gt;
&gt;
&gt; let discard_first lis = match lis with
&gt;        []     -&gt; []
&gt;      | hd::tl -&gt; tl
&gt;
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

</contents>

</message>

