mirror of
https://github.com/kalmarek/Groups.jl.git
synced 2024-12-25 02:05:30 +01:00
add xor for 0.5 compatibility
This commit is contained in:
parent
1bfbd574ee
commit
613ec172bd
@ -78,6 +78,8 @@ convert{T<:GSymbol}(::Type{GWord{T}}, s::T) = GWord{T}(T[s])
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
xor(a,b) = a $ b
|
||||
|
||||
function hash(W::GWord, h::UInt)
|
||||
W.modified && reduce!(W)
|
||||
return xor(W.savedhash, h)
|
||||
|
Loading…
Reference in New Issue
Block a user