Skip to content

Commit

Permalink
add a catch-all unsorted_arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
shashi committed Apr 13, 2024
1 parent c679e9b commit ed97a96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ function arguments(x::BasicSymbolic)
end
return args
end

unsorted_arguments(x) = arguments(x)
children(x::BasicSymbolic) = [operation(x); arguments(x)]
function unsorted_arguments(x::BasicSymbolic)
@compactified x::BasicSymbolic begin
Expand Down

0 comments on commit ed97a96

Please sign in to comment.