1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-26 02:20:30 +01:00

add to syllables commit

This commit is contained in:
kalmarek 2020-03-25 00:38:07 +01:00
parent bc1063f0fd
commit 189850858f
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -216,17 +216,10 @@ end
# #
############################################################################### ###############################################################################
function (==)(W::GWord, Z::GWord) function (==)(W::T, Z::T) where T <: GWord
parent(W) == parent(Z) || return false parent(W) != parent(Z) && return false
hash(W) != hash(Z) && return false
W.modified && reduce!(W) return syllables(W) == syllables(Z)
Z.modified && reduce!(Z)
if W.savedhash != Z.savedhash
return false
end
return W.symbols == Z.symbols
end end
function (==)(s::GSymbol, t::GSymbol) function (==)(s::GSymbol, t::GSymbol)