[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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);;