From: cheno@micronet.fr (Laurent CHENO)
To: caml-list@margaux.inria.fr
Subject: streams and lazy evaluation
Date: Sun, 15 Oct 1995 10:41:14 +0200 [thread overview]
Message-ID: <v01520c01aca679354179@[194.51.75.135]> (raw)
I have obtained:
> Caml Light version 0.7mac
#let rec from n = [< 'n ; from (n+1) >] ;;
from : int -> int stream = <fun>
#let rec version1 flot = match flot with
[< 'n >] -> [< '(2*n) ; version1 flot >] ;;
version1 : int stream -> int stream = <fun>
#version1 (from 0) ;;
- : int stream = <abstr>
#let rec version2 flot = match flot with
[< 'n ; version2 reste >] -> [< '(2*n) ; reste >] ;;
version2 : int stream -> int stream = <fun>
#version2 (from 0) ;;
Uncaught exception: Out_of_memory
#
Why ??
Thank's for the answer.
-------------------------------------------------------------------
Laurent CHENO teaching at / enseignant au
Lycée Louis-le-Grand - 123 rue Saint-Jacques
75231 PARIS CEDEX 05 - FRANCE
personal phone (33) 1 48 05 16 04 - fax (33) 1 48 07 80 18
-------------------------------------------------------------------
next reply other threads:[~1995-10-16 18:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-10-15 8:41 Laurent CHENO [this message]
1995-10-16 18:31 ` Pierre Weis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='v01520c01aca679354179@[194.51.75.135]' \
--to=cheno@micronet.fr \
--cc=caml-list@margaux.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox