]> git.rkrishnan.org Git - sicp.git/blob - src/sicp/ex2_60.clj
Solution to 4.30. Extremely enlightening!
[sicp.git] / src / sicp / ex2_60.clj
1 (ns sicp.ex2_60)
2
3 ;;; a set for which duplicates are allowed
4
5 (comment
6   "element-of-set? will be same program and union, intersection and
7    adjoin-set will differ. element-of-set? has to traverse a bigger
8    list in the worst case of element not in the set. But union is easy,
9    just concat the two sets. adjoin-set also does not require traversing
10    the set thru element-of-set?. Instead it is a simple cons of the new
11    element with the list representing the set."
12   "If the application involves"
13   )