Sha256: 4c237995bafe9d621d31c7db08f9787065d3c96d4aec74568e0499160aaac4db

Contents?: true

Size: 535 Bytes

Versions: 275

Compression:

Stored size: 535 Bytes

Contents

module Deque (Deque, mkDeque, pop, push, shift, unshift) where

data Deque a = Dummy

mkDeque :: IO (Deque a)
mkDeque = error "You need to implement this function."

pop :: Deque a -> IO (Maybe a)
pop deque = error "You need to implement this function."

push :: Deque a -> a -> IO ()
push deque x = error "You need to implement this function."

unshift :: Deque a -> a -> IO ()
unshift deque x = error "You need to implement this function."

shift :: Deque a -> IO (Maybe a)
shift deque = error "You need to implement this function."

Version data entries

275 entries across 275 versions & 1 rubygems

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