English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Help the new guy
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-04-23 (11:56)
From: Daniel Alfonso Fernández <dafernandez@b...>
Subject: [Caml-list] Help the new guy
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);;