mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Erase feature vectors for the empty/nonempty cases.
This commit is contained in:
parent
398bb62d16
commit
223b836612
@ -53,8 +53,8 @@ rws :: forall f fields.
|
||||
-> [Diff f (Record fields)] -- ^ The resulting list of similarity-matched diffs.
|
||||
rws compare as bs
|
||||
| null as, null bs = []
|
||||
| null as = inserting <$> bs
|
||||
| null bs = deleting <$> as
|
||||
| null as = inserting . eraseFeatureVector <$> bs
|
||||
| null bs = deleting . eraseFeatureVector <$> as
|
||||
| otherwise =
|
||||
-- Construct a State who's final value is a list of (Int, Diff leaf (Record fields))
|
||||
-- and who's final state is (Int, IntMap UmappedTerm, IntMap UmappedTerm)
|
||||
|
Loading…
Reference in New Issue
Block a user