From 1578be2aa014727dd0184e859e2ef1eb4234019a Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan Date: Tue, 7 Sep 2010 16:25:50 +0530 Subject: [PATCH] solution to 2.60 --- src/sicp/ex2_60.clj | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/sicp/ex2_60.clj diff --git a/src/sicp/ex2_60.clj b/src/sicp/ex2_60.clj new file mode 100644 index 0000000..9c2e249 --- /dev/null +++ b/src/sicp/ex2_60.clj @@ -0,0 +1,13 @@ +(ns sicp.ex2_60) + +;;; a set for which duplicates are allowed + +(comment + "element-of-set? will be same program and union, intersection and + adjoin-set will differ. element-of-set? has to traverse a bigger + list in the worst case of element not in the set. But union is easy, + just concat the two sets. adjoin-set also does not require traversing + the set thru element-of-set?. Instead it is a simple cons of the new + element with the list representing the set." + "If the application involves" + ) \ No newline at end of file -- 2.45.2