Skip to content

Commit

Permalink
organize SAdd
Browse files Browse the repository at this point in the history
  • Loading branch information
apkille committed Jun 20, 2024
1 parent 462fdf2 commit 140201a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QSymbolicsBase/basic_ops_homogeneous.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ julia> k₁ + k₂
end
function SAdd{S}(d) where S
xs = [c*obj for (c,obj) in d]
length(d)==1 ? SScaled{S}(reverse(first(d))...) : SAdd{S}(d,Set(xs),xs)
length(d)==1 ? first(xs) : SAdd{S}(d,Set(xs),xs)
end
isexpr(::SAdd) = true
iscall(::SAdd) = true
Expand Down

0 comments on commit 140201a

Please sign in to comment.