From 19792eb839150ff9564156e07a456beb1801600c Mon Sep 17 00:00:00 2001 From: Carl Allendorph Date: Fri, 30 Dec 2022 20:52:39 -0800 Subject: [PATCH] [Refactor] Simplification of inclusive range using `through` --- src/ESeries.stanza | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ESeries.stanza b/src/ESeries.stanza index 4b8427c..67edb60 100755 --- a/src/ESeries.stanza +++ b/src/ESeries.stanza @@ -96,7 +96,7 @@ public defmethod find-in-range (self:ESeries, minV:Double, maxV:Double) -> Tuple var ranges:List> = 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(series) map!(scaled-series{_ , to-double(i)}, RRange) ranges = cons(RRange, ranges)