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 28df5cd commit b5749a5Copy full SHA for b5749a5
src/rational-functions/common.jl
@@ -116,7 +116,7 @@ Base.denominator(pq::AbstractRationalFunction) = pq.den
116
117
# Treat a RationalFunction as a tuple (num=p, den=q)
118
Base.length(pq::AbstractRationalFunction) = 2
119
-function Base.iterate(pq, state=nothing)
+function Base.iterate(pq::AbstractRationalFunction, state=nothing)
120
state == nothing && return (numerator(pq), 1)
121
state == 1 && return (denominator(pq), 2)
122
nothing
0 commit comments