Did formatting
This commit is contained in:
parent
0da95bd21e
commit
3566311817
|
@ -3,6 +3,6 @@ lib
|
|||
*.bs.js
|
||||
*.gen.tsx
|
||||
.nyc_output/
|
||||
coverage/
|
||||
_coverage/
|
||||
.cache/
|
||||
Reducer_Peggy_GeneratedParser.js
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user