mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 05:19:55 +00:00
Add equality function for Variant
This commit is contained in:
parent
f9e76d60d6
commit
91c3acc85e
1 changed files with 1 additions and 0 deletions
|
@ -308,6 +308,7 @@ end
|
||||||
|
|
||||||
edits(v::Variant) = v.edits
|
edits(v::Variant) = v.edits
|
||||||
reference(v::Variant) = v.ref
|
reference(v::Variant) = v.ref
|
||||||
|
Base.:(==)(x::Variant, y::Variant) = x.ref == y.ref && x.edits == y.edits
|
||||||
|
|
||||||
function lendiff(edit::Edit)
|
function lendiff(edit::Edit)
|
||||||
x = edit.x
|
x = edit.x
|
||||||
|
|
Loading…
Reference in a new issue