mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 18:15:29 +01:00
add to syllables commit
This commit is contained in:
parent
bc1063f0fd
commit
189850858f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user