From f08d6eb99167f1a82185bf9626c425b701e874c8 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 30 Dec 2022 14:45:31 -0600 Subject: [PATCH] Add length method for Substitution --- src/edits/Substitution.jl | 1 + 1 file changed, 1 insertion(+) 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))