From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA05787; Mon, 23 Apr 2001 13:56:59 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA05819 for caml-list@pauillac.inria.fr; Mon, 23 Apr 2001 13:56:58 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA27266 for ; Fri, 20 Apr 2001 03:31:19 +0200 (MET DST) Received: from kursk.telesat.com.co ([208.221.130.19]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f3K1VGr29661 for ; Fri, 20 Apr 2001 03:31:17 +0200 (MET DST) Received: from [200.24.78.44] ([200.24.78.44]) by kursk.telesat.com.co (8.11.0/8.11.0) with ESMTP id f3K1Qn128709 for ; Thu, 19 Apr 2001 20:26:49 -0500 User-Agent: Microsoft-Entourage/9.0.2509 Date: Thu, 19 Apr 2001 20:31:15 -0700 Subject: [Caml-list] Help the new guy From: Daniel Alfonso Fern=?ISO-8859-1?B?4Q==?=ndez To: Message-ID: Mime-version: 1.0 Content-type: multipart/alternative; boundary="B_3070557081_120274" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >Este mensaje tiene formato MIME. Al no reconocer su lector de correo este formato, puede que todo o parte del mensaje resulte ilegible. --B_3070557081_120274 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Hi list, I=B9m 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 =3D function [] -> [[]] | x::l -> let sl =3D sublists l in sl @ (map (fun l -> x::l) sl);; --B_3070557081_120274 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable 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 =3D
        function [] -> [[]]
            &nb= sp;   | x::l -> let sl =3D sublists l
            &nb= sp;            &= nbsp;  in sl @ (map (fun l -> x::l) sl);;
--B_3070557081_120274-- ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr