From: "Marc Rouaix" <rouaix@my-dejanews.com>
To: caml-list@pauillac.inria.fr
Subject: Re: Map is not tail recursive
Date: Tue, 12 Jan 1999 12:06:59 -0000 [thread overview]
Message-ID: <AFILAAJKMCDMDAAA@my-dejanews.com> (raw)
I should have added that you can then write a function like this to choose your map function for you.
let general_map fn lst =
let n = List.length lst in
if n < 1000 then List.map fn lst
else jump_map (truncate (sqrt (float n))) fn lst
---
Marc
-----== Sent via Deja News, The Discussion Network ==-----
http://www.dejanews.com/ Easy access to 50,000+ discussion forums
next reply other threads:[~1999-01-12 15:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-12 12:06 Marc Rouaix [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-01-14 3:49 David McClain
1999-01-13 17:40 Marc Rouaix
1999-01-11 18:51 David McClain
1999-01-13 8:47 ` Jacques GARRIGUE
1999-01-10 10:49 Juan Jose Garcia Ripoll
1999-01-11 11:03 ` Xavier Leroy
1999-01-12 11:49 ` William Chesters
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=AFILAAJKMCDMDAAA@my-dejanews.com \
--to=rouaix@my-dejanews.com \
--cc=caml-list@pauillac.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;
as well as URLs for NNTP newsgroup(s).