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 2c383dd commit a4a340fCopy full SHA for a4a340f
src/gridded/gridded.jl
@@ -121,7 +121,7 @@ degree(flag::Gridded) = flag.degree
121
function deduplicate_knots!(knots; move_knots::Bool = false)
122
last_knot = first(knots)
123
for i = eachindex(knots)
124
- if i == 1
+ if i == firstindex(knots)
125
continue
126
end
127
if knots[i] == last_knot || (move_knots && (@inbounds knots[i] <= knots[i-1]))
0 commit comments