Did formatting

This commit is contained in:
Ozzie Gooen 2022-05-27 09:44:36 -04:00
parent 0da95bd21e
commit 3566311817
3 changed files with 6 additions and 8 deletions

View File

@ -3,6 +3,6 @@ lib
*.bs.js *.bs.js
*.gen.tsx *.gen.tsx
.nyc_output/ .nyc_output/
coverage/ _coverage/
.cache/ .cache/
Reducer_Peggy_GeneratedParser.js Reducer_Peggy_GeneratedParser.js

View File

@ -22,10 +22,10 @@ module Error = {
let fromOperationError = e => OperationError(e) let fromOperationError = e => OperationError(e)
let toString = (err: sampleSetError) => { let toString = (err: sampleSetError) => {
switch(err){ switch err {
| TooFewSamples => "Too few samples when constructing sample set" | TooFewSamples => "Too few samples when constructing sample set"
| NonNumericInput(err) => `Found a non-number in input: ${err}` | NonNumericInput(err) => `Found a non-number in input: ${err}`
| OperationError(err) => Operation.Error.toString(err) | OperationError(err) => Operation.Error.toString(err)
} }
} }
} }

View File

@ -572,9 +572,7 @@ module A = {
let zip = Belt.Array.zip let zip = Belt.Array.zip
let zip3 = (a, b, c) => let zip3 = (a, b, c) =>
Belt.Array.zip(a, b) Belt.Array.zip(a, b)->Belt.Array.zip(c)->Belt.Array.map((((v1, v2), v3)) => (v1, v2, v3))
-> Belt.Array.zip(c)
-> Belt.Array.map((((v1, v2), v3)) => (v1, v2, v3))
// This zips while taking the longest elements of each array. // This zips while taking the longest elements of each array.
let zipMaxLength = (array1, array2) => { let zipMaxLength = (array1, array2) => {
let maxLength = Int.max(length(array1), length(array2)) let maxLength = Int.max(length(array1), length(array2))