Cleanup combining code, flatten modules
This commit is contained in:
@@ -51,8 +51,8 @@ instance Functor (LabelDoubleTree b) where
|
||||
|
||||
instance Bifunctor LabelDoubleTree where
|
||||
second = fmap
|
||||
first f (LDT x l r) = LDT x (map (first f . second (first f)) l)
|
||||
(map (first f . second (first f)) r)
|
||||
first f (LDT x l r) = LDT x (map (bimap f (first f)) l)
|
||||
(map (bimap f (first f)) r)
|
||||
|
||||
makeLenses ''DoubleTree
|
||||
makeLenses ''LabelDoubleTree
|
||||
|
||||
Reference in New Issue
Block a user