Sha256: cc6530cd6dc8737c4a08962e3fd2e4c4a5b1cdfe54769a29245848daff76bd48
Contents?: true
Size: 246 Bytes
Versions: 6
Compression:
Stored size: 246 Bytes
Contents
(define powerset [] -> [[]] [X | Y] -> (let Powerset (powerset Y) (append (cons-X-to-each-set X Powerset) Powerset))) (define cons-X-to-each-set _ [ ] -> [ ] X [Y | Z] -> [[X | Y] | (cons-X-to-each-set X Z)])
Version data entries
6 entries across 3 versions & 1 rubygems