Ran formatter

This commit is contained in:
Ozzie Gooen 2022-05-27 14:09:17 -04:00
parent c2b90b7023
commit ba34c1abf1
2 changed files with 3 additions and 8 deletions

View File

@ -66,15 +66,12 @@ module Prepare = {
}
module ToArrayRecordPairs = {
let twoArgs = (input: t): result<(array<ts>), err> => {
let twoArgs = (input: t): result<array<ts>, err> => {
let array = input->ToValueArray.Array.openA
let pairs =
array->E.R.bind(pairs =>
pairs
->E.A2.fmap(xyCoord =>
[xyCoord]
->ToValueArray.Record.twoArgs
)
->E.A2.fmap(xyCoord => [xyCoord]->ToValueArray.Record.twoArgs)
->E.A.R.firstErrorOrOpen
)
pairs

View File

@ -43,9 +43,7 @@ let inputsTodist = (inputs: array<FunctionRegistry_Core.frValue>, makeDist) => {
let expressionValue =
xyCoords
->E.R.bind(r => r->XYShape.T.makeFromZipped->E.R2.errMap(XYShape.Error.toString))
->E.R2.fmap(r => ReducerInterface_ExpressionValue.EvDistribution(
PointSet(makeDist(r)),
))
->E.R2.fmap(r => ReducerInterface_ExpressionValue.EvDistribution(PointSet(makeDist(r))))
expressionValue
}