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
*.gen.tsx
.nyc_output/
coverage/
_coverage/
.cache/
Reducer_Peggy_GeneratedParser.js

View File

@ -22,7 +22,7 @@ module Error = {
let fromOperationError = e => OperationError(e)
let toString = (err: sampleSetError) => {
switch(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)

View File

@ -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))