Skip to content

Commit

Permalink
[Refactor] Simplification of inclusive range using through
Browse files Browse the repository at this point in the history
  • Loading branch information
callendorph authored and Carl Allendorph committed Jan 2, 2023
1 parent 5b846f9 commit 19792eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ESeries.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public defmethod find-in-range (self:ESeries, minV:Double, maxV:Double) -> Tuple
var ranges:List<Array<Double>> = List()

val series = get-series(self)
for i in to-int(minPwr10) to to-int(maxPwr10) + 1 do:
for i in to-int(minPwr10) through to-int(maxPwr10) do:
val RRange = to-array<Double>(series)
map!(scaled-series{_ , to-double(i)}, RRange)
ranges = cons(RRange, ranges)
Expand Down

0 comments on commit 19792eb

Please sign in to comment.