mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 02:05:30 +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)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user