Sha256: 8303bb64ce731641c16727a9b8721abd5f78d4edc2d6dd342dadfab7a10fb2cb

Contents?: true

Size: 982 Bytes

Versions: 268

Compression:

Stored size: 982 Bytes

Contents

module LinkedList
    ( LinkedList
    , datum
    , fromList
    , isNil
    , new
    , next
    , nil
    , reverseLinkedList
    , toList
    ) where

data LinkedList a = Dummy deriving (Eq, Show)

datum :: LinkedList a -> a
datum linkedList = error "You need to implement this function."

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

isNil :: LinkedList a -> Bool
isNil linkedList = error "You need to implement this function."

new :: a -> LinkedList a -> LinkedList a
new x linkedList = error "You need to implement this function."

next :: LinkedList a -> LinkedList a
next linkedList = error "You need to implement this function."

nil :: LinkedList a
nil = error "You need to implement this function."

reverseLinkedList :: LinkedList a -> LinkedList a
reverseLinkedList linkedList = error "You need to implement this function."

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

Version data entries

268 entries across 268 versions & 1 rubygems

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