mirror of
https://github.com/MillironX/SequenceVariation.jl.git
synced 2024-11-22 05:19:55 +00:00
Add length method for Substitution
This commit is contained in:
parent
3b2730b5c1
commit
f08d6eb991
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ struct Substitution{T<:BioSymbol}
|
|||
x::T
|
||||
end
|
||||
|
||||
Base.length(::Substitution) = 1
|
||||
Base.:(==)(x::Substitution, y::Substitution) = x.x == y.x
|
||||
Base.hash(x::Substitution, h::UInt) = hash(Substitution, hash(x.x, h))
|
||||
|
||||
|
|
Loading…
Reference in a new issue