(define (subsets L)
(if (null? L)
(list ())
(extend (subsets (cdr L)) (car L))
))
Sunday, December 21, 2008
Subsets function in Scheme
Subsets computes all the possible subsets possible for a list of unique values.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment