diff --git a/src/edits/Substitution.jl b/src/edits/Substitution.jl index e8101da..858b33a 100644 --- a/src/edits/Substitution.jl +++ b/src/edits/Substitution.jl @@ -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))