Sha256: 10eb94cfcf18ea44a9e3204631a06a9a730564ed42f21e70c2dac879d982166f

Contents?: true

Size: 830 Bytes

Versions: 61

Compression:

Stored size: 830 Bytes

Contents

module Zipper
 ( BinTree(BT)
 , fromTree
 , left
 , right
 , setLeft
 , setRight
 , setValue
 , toTree
 , up
 , value
 ) where

data BinTree a = BT { btValue :: a
                    , btLeft  :: Maybe (BinTree a)
                    , btRight :: Maybe (BinTree a)
                    } deriving (Eq, Show)

fromTree :: BinTree a -> Zipper a
fromTree = undefined

toTree :: Zipper a -> BinTree a
toTree = undefined

value :: Zipper a -> a
value = undefined

left :: Zipper a -> Maybe (Zipper a)
left = undefined

right :: Zipper a -> Maybe (Zipper a)
right = undefined

up :: Zipper a -> Maybe (Zipper a)
up = undefined

setValue :: a -> Zipper a -> Zipper a
setValue = undefined

setLeft :: Maybe (BinTree a) -> Zipper a -> Zipper a
setLeft = undefined

setRight :: Maybe (BinTree a) -> Zipper a -> Zipper a
setRight = undefined

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
trackler-2.0.6.5 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.6.4 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.6.3 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.6.2 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.6.1 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.6.0 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.18 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.17 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.16 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.15 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.14 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.13 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.12 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.11 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.10 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.9 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.8 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.7 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.6 tracks/haskell/exercises/zipper/src/Zipper.hs
trackler-2.0.5.5 tracks/haskell/exercises/zipper/src/Zipper.hs