1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-24 01:55:29 +01:00

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

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