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 33b274b commit b90aad0Copy full SHA for b90aad0
src/types.jl
@@ -114,7 +114,7 @@ symtype(x::Number) = typeof(x)
114
end
115
116
117
-@inline head(x::BasicSymbolic) = BasicSymbolic
+@inline head(x::BasicSymbolic) = operation(x)
118
119
function arguments(x::BasicSymbolic)
120
args = unsorted_arguments(x)
@@ -139,7 +139,7 @@ function arguments(x::BasicSymbolic)
139
140
141
unsorted_arguments(x) = arguments(x)
142
-children(x::BasicSymbolic) = [operation(x); arguments(x)]
+children(x::BasicSymbolic) = arguments(x)
143
function unsorted_arguments(x::BasicSymbolic)
144
@compactified x::BasicSymbolic begin
145
Term => return x.arguments
0 commit comments