repositories
/
fp1415.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bee9e3d
)
Removed unnecessary functions
author
Camil Staps
<info@camilstaps.nl>
Mon, 2 Mar 2015 13:04:48 +0000
(14:04 +0100)
committer
Camil Staps
<info@camilstaps.nl>
Mon, 2 Mar 2015 13:04:48 +0000
(14:04 +0100)
week4/camil/StdSet.icl
patch
|
blob
|
history
diff --git
a/week4/camil/StdSet.icl
b/week4/camil/StdSet.icl
index
01c854b
..
651c869
100644
(file)
--- a/
week4/camil/StdSet.icl
+++ b/
week4/camil/StdSet.icl
@@
-61,10
+61,4
@@
where (==) s1 s2 = isSubset s1 s2 && isSubset s2 s1
\r
powerSet :: (Set a) -> Set (Set a)
\r
powerSet [] = [zero]
\r
-powerSet [e:es] = map ((++) [e]) (powerSet es) ++ powerSet es
\r
-
\r
-powerSet` :: (Set a) -> [Int]
\r
-powerSet` s = [0 .. 2^(nrOfElements s) - 1]
\r
-
\r
-takeMod :: (Set a) Int -> Set a
\r
-takeMod s m = [e \\ e <- s & k <- [0..] | k rem m == 0]
\r
+powerSet [e:es] = map ((++) [e]) (powerSet es) ++ powerSet es
\ No newline at end of file