1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-14 14:15:28 +01:00

better inverse function

This commit is contained in:
kalmar 2017-01-21 17:15:59 +01:00
parent 58c90d244d
commit bfa1ad73ef

View File

@ -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