Skip to content

Commit b90aad0

Browse files
committed
Fix head & arguments accessor functions
1 parent 33b274b commit b90aad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ symtype(x::Number) = typeof(x)
114114
end
115115
end
116116

117-
@inline head(x::BasicSymbolic) = BasicSymbolic
117+
@inline head(x::BasicSymbolic) = operation(x)
118118

119119
function arguments(x::BasicSymbolic)
120120
args = unsorted_arguments(x)
@@ -139,7 +139,7 @@ function arguments(x::BasicSymbolic)
139139
end
140140

141141
unsorted_arguments(x) = arguments(x)
142-
children(x::BasicSymbolic) = [operation(x); arguments(x)]
142+
children(x::BasicSymbolic) = arguments(x)
143143
function unsorted_arguments(x::BasicSymbolic)
144144
@compactified x::BasicSymbolic begin
145145
Term => return x.arguments

0 commit comments

Comments
 (0)