Skip to content

Commit

Permalink
Merge pull request #606 from JuliaSymbolics/s/fix-accessors
Browse files Browse the repository at this point in the history
Fix head & arguments accessor functions
  • Loading branch information
ChrisRackauckas authored Jun 3, 2024
2 parents 33b274b + b90aad0 commit a2a4b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ symtype(x::Number) = typeof(x)
end
end

@inline head(x::BasicSymbolic) = BasicSymbolic
@inline head(x::BasicSymbolic) = operation(x)

function arguments(x::BasicSymbolic)
args = unsorted_arguments(x)
Expand All @@ -139,7 +139,7 @@ function arguments(x::BasicSymbolic)
end

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

2 comments on commit a2a4b90

@shashi
Copy link
Member

@shashi shashi commented on a2a4b90 Jun 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: Version 2.0.1 already exists

Please sign in to comment.