Version franÁaise
Home ††† About ††† Download ††† Resources ††† Contact us †††
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: -- (:)
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);;