caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Help the new guy
@ 2001-04-20  3:31 Daniel Alfonso Fernández
  2001-04-23 13:31 ` Judicaël Courant
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Alfonso Fernández @ 2001-04-20  3:31 UTC (permalink / raw)
  To: caml-list

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-23 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-20  3:31 [Caml-list] Help the new guy Daniel Alfonso Fernández
2001-04-23 13:31 ` Judicaël Courant

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