From aabb53957ea320818c9295321fca3e01bfa33b96 Mon Sep 17 00:00:00 2001 From: Quinn Dougherty Date: Wed, 27 Apr 2022 12:41:07 -0400 Subject: [PATCH] rm warnings 26 and 27 Value: [1e-5 to 1e-3] --- packages/squiggle-lang/src/rescript/Utility/E.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/squiggle-lang/src/rescript/Utility/E.res b/packages/squiggle-lang/src/rescript/Utility/E.res index daba1861..362ed743 100644 --- a/packages/squiggle-lang/src/rescript/Utility/E.res +++ b/packages/squiggle-lang/src/rescript/Utility/E.res @@ -521,8 +521,8 @@ module A = { let split = (sortedArray: array) => { let continuous = [] let discrete = FloatFloatMap.empty() - Belt.Array.forEachWithIndex(sortedArray, (index, element) => { - let maxIndex = (sortedArray |> Array.length) - 1 + Belt.Array.forEachWithIndex(sortedArray, (_, element) => { + // let maxIndex = (sortedArray |> Array.length) - 1 // let possiblySimilarElements = switch index { // | 0 => [index + 1] // | n if n == maxIndex => [index - 1]