You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposed fix: create an internal constructor method for VectorFold (and maybe check PatternFold, as well?) to catch this. Would that be reasonable? Or do we...somehow want non-positive numbers of folds? E.g.:
mutable struct VectorFold{T,V <:AbstractVector{T}, I1 <:Integer, I2 <:Integer} <:PatternFold{T,V}
pattern::V
gap::T
folds::I1
current::I2functionVectorFold(p::V, g::T, f::I1, c::I2) where {T,V <:AbstractVector{T}, I1 <:Integer, I2 <:Integer}
f <0&&throw(ArgumentError("folds cannot be negative (you cannot have a negative number of folds)."))
new{T, V, I1, I2}(p, g, f, c)
endend
The text was updated successfully, but these errors were encountered:
E.g.,
Proposed fix: create an internal constructor method for
VectorFold
(and maybe checkPatternFold
, as well?) to catch this. Would that be reasonable? Or do we...somehow want non-positive numbers of folds? E.g.:The text was updated successfully, but these errors were encountered: