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
1 changed files with 4 additions and 11 deletions

View File

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