diff --git a/packages/squiggle-lang/.prettierignore b/packages/squiggle-lang/.prettierignore index 46ac9925..cc0cf959 100644 --- a/packages/squiggle-lang/.prettierignore +++ b/packages/squiggle-lang/.prettierignore @@ -3,6 +3,6 @@ lib *.bs.js *.gen.tsx .nyc_output/ -coverage/ +_coverage/ .cache/ Reducer_Peggy_GeneratedParser.js diff --git a/packages/squiggle-lang/src/rescript/Distributions/SampleSetDist/SampleSetDist.res b/packages/squiggle-lang/src/rescript/Distributions/SampleSetDist/SampleSetDist.res index 597319b3..bfbaa795 100644 --- a/packages/squiggle-lang/src/rescript/Distributions/SampleSetDist/SampleSetDist.res +++ b/packages/squiggle-lang/src/rescript/Distributions/SampleSetDist/SampleSetDist.res @@ -22,10 +22,10 @@ module Error = { let fromOperationError = e => OperationError(e) let toString = (err: sampleSetError) => { - switch(err){ - | TooFewSamples => "Too few samples when constructing sample set" - | NonNumericInput(err) => `Found a non-number in input: ${err}` - | OperationError(err) => Operation.Error.toString(err) + switch err { + | TooFewSamples => "Too few samples when constructing sample set" + | NonNumericInput(err) => `Found a non-number in input: ${err}` + | OperationError(err) => Operation.Error.toString(err) } } } diff --git a/packages/squiggle-lang/src/rescript/Utility/E.res b/packages/squiggle-lang/src/rescript/Utility/E.res index c199b299..2c45a8b2 100644 --- a/packages/squiggle-lang/src/rescript/Utility/E.res +++ b/packages/squiggle-lang/src/rescript/Utility/E.res @@ -572,9 +572,7 @@ module A = { let zip = Belt.Array.zip let zip3 = (a, b, c) => - Belt.Array.zip(a, b) - -> Belt.Array.zip(c) - -> Belt.Array.map((((v1, v2), v3)) => (v1, v2, v3)) + Belt.Array.zip(a, b)->Belt.Array.zip(c)->Belt.Array.map((((v1, v2), v3)) => (v1, v2, v3)) // This zips while taking the longest elements of each array. let zipMaxLength = (array1, array2) => { let maxLength = Int.max(length(array1), length(array2))