Sha256: 91d281949541b2f37c37d9ba7862ef90376f1bf3ca8ad2325536664259910bd1

Contents?: true

Size: 1.56 KB

Versions: 277

Compression:

Stored size: 1.56 KB

Contents

module CustomSet
  ( delete
  , difference
  , empty
  , fromList
  , insert
  , intersection
  , isDisjointFrom
  , isSubsetOf
  , member
  , null
  , size
  , toList
  , union
  ) where

import Prelude hiding (null)

data CustomSet a = Dummy deriving (Eq, Show)

delete :: a -> CustomSet a -> CustomSet a
delete x set = error "You need to implement this function."

difference :: CustomSet a -> CustomSet a -> CustomSet a
difference setA setB = error "You need to implement this function."

empty :: CustomSet a
empty = error "You need to implement this function."

fromList :: [a] -> CustomSet a
fromList xs = error "You need to implement this function."

insert :: a -> CustomSet a -> CustomSet a
insert x set = error "You need to implement this function."

intersection :: CustomSet a -> CustomSet a -> CustomSet a
intersection setA setB = error "You need to implement this function."

isDisjointFrom :: CustomSet a -> CustomSet a -> Bool
isDisjointFrom setA setB = error "You need to implement this function."

isSubsetOf :: CustomSet a -> CustomSet a -> Bool
isSubsetOf setA setB = error "You need to implement this function."

member :: a -> CustomSet a -> Bool
member x set = error "You need to implement this function."

null :: CustomSet a -> Bool
null set = error "You need to implement this function."

size :: CustomSet a -> Int
size set = error "You need to implement this function."

toList :: CustomSet a -> [a]
toList set = error "You need to implement this function."

union :: CustomSet a -> CustomSet a -> CustomSet a
union setA setB = error "You need to implement this function."

Version data entries

277 entries across 277 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.179 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.178 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.177 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.176 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.175 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.174 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.173 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.172 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.171 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.170 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.169 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.167 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.166 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.165 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.164 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.163 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.162 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.161 tracks/haskell/exercises/custom-set/src/CustomSet.hs
trackler-2.2.1.160 tracks/haskell/exercises/custom-set/src/CustomSet.hs