diff --git a/Groups.jl b/Groups.jl index 27125db..d671e46 100644 --- a/Groups.jl +++ b/Groups.jl @@ -76,7 +76,7 @@ function inv{T}(W::GWord{T}) if length(W) == 0 return W else - return prod(reverse([inv(s) for s in W.symbols])) + return reduceGWord{T}(reverse([inv(s) for s in W.symbols])) end end