rm warnings 26 and 27

Value: [1e-5 to 1e-3]
This commit is contained in:
Quinn Dougherty 2022-04-27 12:41:07 -04:00
parent 21d4c1b928
commit aabb53957e

View File

@ -521,8 +521,8 @@ module A = {
let split = (sortedArray: array<float>) => { let split = (sortedArray: array<float>) => {
let continuous = [] let continuous = []
let discrete = FloatFloatMap.empty() let discrete = FloatFloatMap.empty()
Belt.Array.forEachWithIndex(sortedArray, (index, element) => { Belt.Array.forEachWithIndex(sortedArray, (_, element) => {
let maxIndex = (sortedArray |> Array.length) - 1 // let maxIndex = (sortedArray |> Array.length) - 1
// let possiblySimilarElements = switch index { // let possiblySimilarElements = switch index {
// | 0 => [index + 1] // | 0 => [index + 1]
// | n if n == maxIndex => [index - 1] // | n if n == maxIndex => [index - 1]