We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c48498 commit f29b80bCopy full SHA for f29b80b
src/types.jl
@@ -335,7 +335,9 @@ function Base.hash(t::Term, salt::UInt)
335
!iszero(salt) && return hash(hash(t, zero(UInt)), salt)
336
h = t.hash[]
337
!iszero(h) && return h
338
- h′ = hashvec(arguments(t), hash(operation(t), salt))
+ op = operation(t)
339
+ oph = op isa Function ? nameof(op) : op
340
+ h′ = hashvec(arguments(t), hash(oph, salt))
341
t.hash[] = h′
342
return h′
343
end
0 commit comments