Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
powerset
(define (ps set) (if (null? set) '(()) (append (ps (cdr set)) (map (lambda (subset) (cons (car set) subset)) (ps (cdr set)))))) (display (ps '(1 2 3)))
run
|
edit
|
history
|
help
0
Infinite lists
Range List for Scheme
Find Euler's number
Fibonacci in Scheme
99 LISP PROBS
Number of prime numbers in a list
Pruebas
Toy implementation of classes using closures
1.11
So