From: Camil Staps Date: Mon, 2 Mar 2015 13:04:48 +0000 (+0100) Subject: Removed unnecessary functions X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=43ff26bb2f00d7decceeb34832bf659d9178797f;p=fp1415.git Removed unnecessary functions --- diff --git a/week4/camil/StdSet.icl b/week4/camil/StdSet.icl index 01c854b..651c869 100644 --- a/week4/camil/StdSet.icl +++ b/week4/camil/StdSet.icl @@ -61,10 +61,4 @@ where (==) s1 s2 = isSubset s1 s2 && isSubset s2 s1 powerSet :: (Set a) -> Set (Set a) powerSet [] = [zero] -powerSet [e:es] = map ((++) [e]) (powerSet es) ++ powerSet es - -powerSet` :: (Set a) -> [Int] -powerSet` s = [0 .. 2^(nrOfElements s) - 1] - -takeMod :: (Set a) Int -> Set a -takeMod s m = [e \\ e <- s & k <- [0..] | k rem m == 0] +powerSet [e:es] = map ((++) [e]) (powerSet es) ++ powerSet es \ No newline at end of file