A small renaming for more clarity and because I thought «update» could be needed for a function name but after all maybe not but it's still better that way
This commit is contained in:
parent
36b1782464
commit
160999a7d7
1 changed files with 4 additions and 4 deletions
|
@ -65,13 +65,13 @@ unify = foldl complete emptyLayer
|
||||||
}
|
}
|
||||||
|
|
||||||
unifyDocStructure :: Structure -> Structure -> Structure
|
unifyDocStructure :: Structure -> Structure -> Structure
|
||||||
unifyDocStructure update original = Structure {
|
unifyDocStructure new old = Structure {
|
||||||
xRef = Map.union (xRef update) (xRef original)
|
xRef = Map.union (xRef new) (xRef old)
|
||||||
, trailer = Map.union (trailer update) (trailer original)
|
, trailer = Map.union (trailer new) (trailer old)
|
||||||
}
|
}
|
||||||
|
|
||||||
unifyOccurrences :: IndexedObjects -> [Occurrence] -> [Occurrence] -> [Occurrence]
|
unifyOccurrences :: IndexedObjects -> [Occurrence] -> [Occurrence] -> [Occurrence]
|
||||||
unifyOccurrences objects update = foldr addOlder update
|
unifyOccurrences objects new = foldr addOlder new
|
||||||
where
|
where
|
||||||
addOlder occurrence@(Comment _) existing = occurrence : existing
|
addOlder occurrence@(Comment _) existing = occurrence : existing
|
||||||
addOlder occurrence@(Indirect indirect) existing =
|
addOlder occurrence@(Indirect indirect) existing =
|
||||||
|
|
Loading…
Reference in a new issue