From: "Daniel Alfonso Fernández" <dafernandez@bigfoot.com>
To: <caml-list@inria.fr>
Subject: [Caml-list] Help the new guy
Date: Thu, 19 Apr 2001 20:31:15 -0700 [thread overview]
Message-ID: <B704FB93.2B4%dafernandez@bigfoot.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 308 bytes --]
Hi list, I¹m new at functional programming so I was wondering if someone
could help me translate the following caml code to scheme code, thanks
let rec sublists =
function [] -> [[]]
| x::l -> let sl = sublists l
in sl @ (map (fun l -> x::l) sl);;
[-- Attachment #2: Type: text/html, Size: 716 bytes --]
next reply other threads:[~2001-04-23 11:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-20 3:31 Daniel Alfonso Fernández [this message]
2001-04-23 13:31 ` Judicaël Courant
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=B704FB93.2B4%dafernandez@bigfoot.com \
--to=dafernandez@bigfoot.com \
--cc=caml-list@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