1 line
94 B
FSharp
1 line
94 B
FSharp
let subsets xs = List.foldBack (fun x rest -> rest @ List.map (fun ys -> x::ys) rest) xs [[]]
|