<?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="2002/07/99c5bb60f441d6e61974021204d72812"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-08T00:34:06"
  subject="Re: [Caml-list] yet another question on lazy lists"
  prev="2002/07/55aaf067448698d1a8dd460ca582ba39"
  next="2002/07/2702b480e76a128d5e149a4d57a81363"
  prev-in-thread="2002/07/f3f66088ad1575a8c6b10b09ffdfcded"
  prev-thread="2002/07/1eefe810f7f0f0aa410a2eab708b2234"
  next-thread="2002/07/061b98c60a3aae3e13a775ccfea73028"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] yet another question on lazy lists">
<msg 
  url="2002/07/746ede35d7b862c4b263842d67508891"
  from="Michael Vanier &lt;mvanier@c...&gt;"
  author="Michael Vanier"
  date="2002-07-06T14:18:48"
  subject="[Caml-list] yet another question on lazy lists">
<msg 
  url="2002/07/efd8bf1158b6562718435420a02fd7f2"
  from="Pierre Weis &lt;pierre.weis@i...&gt;"
  author="Pierre Weis"
  date="2002-07-06T15:26:37"
  subject="Re: [Caml-list] yet another question on lazy lists">
<msg 
  url="2002/07/d1b9c9518820db66620939f4ea73e1a4"
  from="William Lovas &lt;wlovas@s...&gt;"
  author="William Lovas"
  date="2002-07-06T18:22:57"
  subject="Re: [Caml-list] yet another question on lazy lists">
<msg 
  url="2002/07/f3f66088ad1575a8c6b10b09ffdfcded"
  from="Michael Vanier &lt;mvanier@c...&gt;"
  author="Michael Vanier"
  date="2002-07-07T09:20:21"
  subject="Re: [Caml-list] yet another question on lazy lists">
<msg 
  url="2002/07/99c5bb60f441d6e61974021204d72812"
  from="John Max Skaller &lt;skaller@o...&gt;"
  author="John Max Skaller"
  date="2002-07-08T00:34:06"
  subject="Re: [Caml-list] yet another question on lazy lists">
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
&gt;
&gt;
&gt;
&gt;Right again.  This is SICP terminology.  I'll change it if I post any more
&gt;questions on this subject to this list.
&gt;
My understanding is that a list is a finite inductuive type, 
characterised by constructors.
Whereas a stream is like an infinite list, but it is a coinductive type,
characterised by destructors:

    'a list = Empty | Cons of 'a * 'a list
    split ('a stream) -&gt; 'a * 'a stream

As I understand it, the two types are formally dual.
See Charity (if you can find it)  for a language which provides
coinductive types with a natural syntax which makes the duality
syntactically evident.

-- 
John Max Skaller, mailto:skaller@ozemail.com.au
snail:10/1 Toxteth Rd, Glebe, NSW 2037, Australia.
voice:61-2-9660-0850




-------------------
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>

