but it makes more sense to define word for abstract GWords

This commit is contained in:
kalmar 2017-05-11 17:49:56 +02:00
parent 711d7dec12
commit 7b564d5e89
1 changed files with 1 additions and 3 deletions

View File

@ -36,12 +36,10 @@ GWord{T<:GSymbol}(s::T) = GWord{T}([s])
convert{T<:GSymbol, W<:Word}(::Type{W}, s::T) = GWord{T}(s)
function length(W::GWord)
return sum([abs(s.pow) for s in W.symbols])
end
end
length(W::GWord) = sum([length(s) for s in W.symbols])
function join_free_symbols!(W::GWord)
reduced = true