git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Remove duplicates : elem, notElem
commitc6d48a9a4c1aac2da194d698abf9d76101ad6012 authorPhil Freeman <paf31@cantab.net> dateSat 15 Mar 2014, 17:19 (13 years ago) parent52ebe69
1 file changed−8
prelude/prelude.purs−8
prelude/prelude.purs−8
@@ -651,14 +651,6 @@ module Data.Array where
651651 nubBy _ [] = []
652652 nubBy (==) (x:xs) = x : nubBy (==) (filter (\y -> not (x == y)) xs)
653653
654− elem :: forall a. (Eq a) => a -> [a] -> Boolean
655− elem a (a' : as) | a == a' = true
656− elem a (_ : as) = a `elem` as
657− elem _ _ = false
658−
659− notElem :: forall a. (Eq a) => a -> [a] -> Boolean
660− notElem a as = not (a `elem` as)
661−
662654 instance showArray :: (Show a) => Show [a] where
663655 show xs = "[" ++ joinWith (map show xs) "," ++ "]"
664656