@nfdi4plants/arctrl 3.2.3 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ts/index.d.ts +44 -7
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +45 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Array.js +195 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Async.js +251 -30
- package/dist/ts/node_modules/@fable-org/fable-library-ts/AsyncBuilder.js +61 -11
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BigInt.js +15 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/BitConverter.js +139 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Date.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Decimal.js +68 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Double.js +24 -10
- package/dist/ts/node_modules/@fable-org/fable-library-ts/FSharp.Core.js +8 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Global.js +1 -1
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Int32.js +11 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/List.js +220 -155
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Long.js +7 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Map.js +46 -39
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableMap.js +75 -92
- package/dist/ts/node_modules/@fable-org/fable-library-ts/MutableSet.js +56 -76
- package/dist/ts/node_modules/@fable-org/fable-library-ts/NumberStyles.js +54 -0
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Numeric.js +10 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Random.js +3 -4
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Range.js +4 -3
- package/dist/ts/node_modules/@fable-org/fable-library-ts/RegExp.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq.js +128 -64
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Seq2.js +4 -8
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Set.js +64 -57
- package/dist/ts/node_modules/@fable-org/fable-library-ts/String.js +68 -21
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Collections.Generic.js +3 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.Text.js +2 -2
- package/dist/ts/node_modules/@fable-org/fable-library-ts/System.js +5 -5
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Types.js +23 -12
- package/dist/ts/node_modules/@fable-org/fable-library-ts/Util.js +88 -49
- package/dist/ts/node_modules/@fable-org/fable-library-ts/lib/big.js +121 -74
- package/dist/ts/ts/ARC.d.ts +19 -2
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +128 -89
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts +0 -2
- package/dist/ts/ts/CWL/CWLKnownFieldNames.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLKnownFieldNames.js +1 -7
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +46 -27
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLProcessingUnit.js +312 -123
- package/dist/ts/ts/CWL/CWLTypes.d.ts +481 -148
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -1
- package/dist/ts/ts/CWL/CWLTypes.js +887 -201
- package/dist/ts/ts/CWL/Decode.d.ts +480 -211
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +3614 -2462
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts +9 -0
- package/dist/ts/ts/CWL/DynamicObjHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/DynamicObjHelpers.js +55 -5
- package/dist/ts/ts/CWL/Encode.d.ts +225 -85
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Encode.js +1858 -970
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +42 -28
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ExpressionToolDescription.js +34 -13
- package/dist/ts/ts/CWL/HashHelpers.d.ts +38 -0
- package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -1
- package/dist/ts/ts/CWL/HashHelpers.js +255 -6
- package/dist/ts/ts/CWL/Inputs.d.ts +127 -56
- package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Inputs.js +107 -16
- package/dist/ts/ts/CWL/OperationDescription.d.ts +41 -21
- package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/OperationDescription.js +35 -9
- package/dist/ts/ts/CWL/Outputs.d.ts +93 -42
- package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Outputs.js +101 -19
- package/dist/ts/ts/CWL/ParameterReference.d.ts +11 -8
- package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterReference.js +18 -25
- package/dist/ts/ts/CWL/ParameterValue.d.ts +15 -1
- package/dist/ts/ts/CWL/ParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ParameterValue.js +59 -35
- package/dist/ts/ts/CWL/Requirements.d.ts +240 -98
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Requirements.js +462 -89
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts +51 -0
- package/dist/ts/ts/CWL/ScalarQuoting.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ScalarQuoting.js +250 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts +63 -50
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/ToolDescription.js +34 -13
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +45 -26
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowDescription.js +38 -11
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +248 -65
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.js +413 -43
- package/dist/ts/ts/CWLRunResolver.d.ts +30 -12
- package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -1
- package/dist/ts/ts/CWLRunResolver.js +221 -86
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +13 -14
- package/dist/ts/ts/Contract/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcAssay.js +4 -4
- package/dist/ts/ts/Contract/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcInvestigation.js +3 -4
- package/dist/ts/ts/Contract/ArcRun.d.ts +12 -2
- package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcRun.js +47 -20
- package/dist/ts/ts/Contract/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcStudy.js +4 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts +18 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.js +55 -17
- package/dist/ts/ts/Contract/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Datamap.js +16 -17
- package/dist/ts/ts/Contract/Git.js +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +4 -5
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +15 -16
- package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Assay.js +26 -18
- package/dist/ts/ts/Conversion/Basic.d.ts +4 -0
- package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Basic.js +55 -31
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ColumnIndex.js +2 -4
- package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/DateTime.js +1 -2
- package/dist/ts/ts/Conversion/Investigation.js +11 -11
- package/dist/ts/ts/Conversion/Person.js +11 -11
- package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Process.js +107 -86
- package/dist/ts/ts/Conversion/Run.d.ts +36 -6
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Run.js +320 -136
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/ScholarlyArticle.js +75 -9
- package/dist/ts/ts/Conversion/Study.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Study.js +23 -12
- package/dist/ts/ts/Conversion/Table.js +5 -5
- package/dist/ts/ts/Conversion/Workflow.d.ts +48 -9
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Workflow.js +655 -163
- package/dist/ts/ts/Conversion.js +6 -6
- package/dist/ts/ts/Core/ArcTypes.d.ts +73 -28
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +219 -129
- package/dist/ts/ts/Core/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Core/Comment.js +2 -2
- package/dist/ts/ts/Core/CommentList.js +7 -7
- package/dist/ts/ts/Core/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Core/Conversion.js +41 -41
- package/dist/ts/ts/Core/Data.d.ts.map +1 -1
- package/dist/ts/ts/Core/Data.js +14 -11
- package/dist/ts/ts/Core/DataContext.d.ts +1 -1
- package/dist/ts/ts/Core/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataContext.js +4 -4
- package/dist/ts/ts/Core/DataFile.d.ts +11 -8
- package/dist/ts/ts/Core/DataFile.d.ts.map +1 -1
- package/dist/ts/ts/Core/DataFile.js +55 -61
- package/dist/ts/ts/Core/Datamap.d.ts.map +1 -1
- package/dist/ts/ts/Core/Datamap.js +2 -3
- package/dist/ts/ts/Core/Helper/Collections.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Collections.js +2 -4
- package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Identifier.js +12 -15
- package/dist/ts/ts/Core/Helper/ORCID.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/ORCID.js +2 -3
- package/dist/ts/ts/Core/Helper/Regex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Regex.js +52 -53
- package/dist/ts/ts/Core/Helper/SemVer.d.ts +13 -3
- package/dist/ts/ts/Core/Helper/SemVer.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/SemVer.js +96 -6
- package/dist/ts/ts/Core/Helper/Url.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Url.js +1 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +22 -22
- package/dist/ts/ts/Core/Person.d.ts.map +1 -1
- package/dist/ts/ts/Core/Person.js +2 -2
- package/dist/ts/ts/Core/Process/ColumnIndex.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +10 -12
- package/dist/ts/ts/Core/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Component.js +22 -22
- package/dist/ts/ts/Core/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Factor.js +7 -7
- package/dist/ts/ts/Core/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/FactorValue.js +15 -15
- package/dist/ts/ts/Core/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Material.js +2 -2
- package/dist/ts/ts/Core/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +6 -6
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +16 -16
- package/dist/ts/ts/Core/Process/Process.js +21 -21
- package/dist/ts/ts/Core/Process/ProcessInput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessInput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessOutput.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessOutput.js +2 -2
- package/dist/ts/ts/Core/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +17 -17
- package/dist/ts/ts/Core/Process/ProcessSequence.js +4 -4
- package/dist/ts/ts/Core/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/Protocol.js +9 -9
- package/dist/ts/ts/Core/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Core/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Core/Publication.js +3 -3
- package/dist/ts/ts/Core/ScalarValue.d.ts.map +1 -1
- package/dist/ts/ts/Core/ScalarValue.js +9 -13
- package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +18 -18
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTableAux.js +50 -70
- package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
- package/dist/ts/ts/Core/Table/CompositeHeader.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/CompositeHeader.js +5 -6
- package/dist/ts/ts/Core/Templates.d.ts.map +1 -1
- package/dist/ts/ts/Core/Templates.js +2 -2
- package/dist/ts/ts/FileSystem/Path.d.ts +13 -2
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +37 -19
- package/dist/ts/ts/Json/Assay.js +22 -22
- package/dist/ts/ts/Json/Comment.js +9 -9
- package/dist/ts/ts/Json/Data.d.ts.map +1 -1
- package/dist/ts/ts/Json/Data.js +11 -11
- package/dist/ts/ts/Json/Datamap/DataContext.js +2 -2
- package/dist/ts/ts/Json/Decode.d.ts.map +1 -1
- package/dist/ts/ts/Json/Decode.js +3 -5
- package/dist/ts/ts/Json/Encode.js +2 -2
- package/dist/ts/ts/Json/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/Json/Investigation.js +20 -20
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +18 -18
- package/dist/ts/ts/Json/OntologySourceReference.d.ts.map +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +9 -9
- package/dist/ts/ts/Json/Person.d.ts.map +1 -1
- package/dist/ts/ts/Json/Person.js +20 -20
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +1 -2
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +5 -6
- package/dist/ts/ts/Json/Process/Factor.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +7 -7
- package/dist/ts/ts/Json/Process/FactorValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +2 -3
- package/dist/ts/ts/Json/Process/Material.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Material.js +9 -10
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +5 -6
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +2 -3
- package/dist/ts/ts/Json/Process/Process.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Process.js +8 -9
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +1 -2
- package/dist/ts/ts/Json/Process/Protocol.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +17 -17
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +6 -6
- package/dist/ts/ts/Json/Process/Sample.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +9 -9
- package/dist/ts/ts/Json/Process/Source.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Source.js +10 -11
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +1 -2
- package/dist/ts/ts/Json/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +24 -24
- package/dist/ts/ts/Json/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Json/Publication.js +10 -10
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -2
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +2 -2
- package/dist/ts/ts/Json/ROCrate/LDNode.js +5 -5
- package/dist/ts/ts/Json/Run.js +9 -9
- package/dist/ts/ts/Json/StringTable.d.ts.map +1 -1
- package/dist/ts/ts/Json/StringTable.js +4 -7
- package/dist/ts/ts/Json/Study.js +20 -20
- package/dist/ts/ts/Json/Table/CellTable.js +1 -2
- package/dist/ts/ts/Json/Table/OATable.js +1 -2
- package/dist/ts/ts/Json/Workflow.js +9 -9
- package/dist/ts/ts/Json.d.ts +121 -1
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +310 -2
- package/dist/ts/ts/JsonIO/Comment.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Comment.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Comment.js +67 -0
- package/dist/ts/ts/JsonIO/Data.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Data.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Data.js +49 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts +9 -0
- package/dist/ts/ts/JsonIO/DataFile.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/DataFile.js +48 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts +6 -0
- package/dist/ts/ts/JsonIO/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/JsonIO/LDObject.js +173 -17
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts +15 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/OntologySourceReference.js +67 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts +15 -0
- package/dist/ts/ts/JsonIO/Publication.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Publication.js +68 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts +9 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/ArcTable.js +74 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeCell.js +29 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/CompositeHeader.js +29 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts +6 -0
- package/dist/ts/ts/JsonIO/Table/IOType.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Table/IOType.js +29 -0
- package/dist/ts/ts/License.d.ts.map +1 -1
- package/dist/ts/ts/License.js +6 -6
- package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDContext.js +31 -39
- package/dist/ts/ts/ROCrate/LDObject.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDObject.js +56 -49
- package/dist/ts/ts/ROCrate/LDTypes/Comment.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/CreativeWork.js +3 -0
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.js +22 -17
- package/dist/ts/ts/ROCrate/LDTypes/DefinedTerm.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/File.js +5 -5
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +2 -2
- package/dist/ts/ts/ROCrate/LDTypes/LabProcess.js +9 -9
- package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/Organization.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/Person.js +7 -7
- package/dist/ts/ts/ROCrate/LDTypes/PostalAddress.js +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.js +45 -48
- package/dist/ts/ts/ROCrate/LDTypes/Sample.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/ScholarlyArticle.js +4 -4
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +3 -3
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +2 -2
- package/dist/ts/ts/ROCrateIO.d.ts +18 -4
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +49 -38
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +7 -7
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +6 -8
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +20 -20
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +7 -7
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +8 -8
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +5 -6
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +5 -6
- package/dist/ts/ts/Spreadsheet/CollectionAux.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +10 -14
- package/dist/ts/ts/Spreadsheet/Datamap.js +1 -2
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapColumn.js +3 -3
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapHeader.js +10 -10
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DatamapTable/DatamapTable.js +9 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +3 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +7 -7
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +17 -17
- package/dist/ts/ts/Spreadsheet/Metadata/Study.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +8 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Adapters.js +5 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts +25 -6
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/Builder.js +264 -138
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +6 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/GraphTypes.js +4 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +8 -5
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -1
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +27 -10
- package/dist/ts/ts/Xlsx.js +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +11 -23
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +3 -3
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +11 -23
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/DynamicObj.fs.js +16 -20
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/FableJS.fs.js +1 -1
- package/dist/ts/ts/fable_modules/DynamicObj.8.0.0/ReflectionUtils.fs.js +8 -8
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.6.0/Http.fs.js +4 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCell.fs.js +8 -8
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Cells/FsCellsCollection.fs.js +18 -18
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsAddress.fs.js +3 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorkbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/FsWorksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Value.fs.js +3 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Json/Worksheet.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Ranges/FsRangeBase.fs.js +1 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.1/Tables/FsTable.fs.js +7 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.1/Table.fs.js +1 -2
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Decode.fs.js +49 -71
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.9.1/Encode.fs.js +1 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.5.0/Decode.fs.js +1 -2
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Compare.fs.js +857 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/CoreSchema.fs.js +725 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Decode.fs.js +1175 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Encode.fs.js +123 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Layout.fs.js +282 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexeme.fs.js +203 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Lexer.fs.js +1502 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Model.fs.js +564 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Node.fs.js +453 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Parser.fs.js +2622 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Reader.fs.js +108 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Source.fs.js +649 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Tag.fs.js +32 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Validate.fs.js +1084 -0
- package/dist/ts/ts/fable_modules/YAMLicious.2.0.0/Writer.fs.js +2927 -0
- package/package.json +5 -4
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Decode.fs.js +0 -1669
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Encode.fs.js +0 -57
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Escapes.fs.js +0 -320
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Interop/JsInterop.fs.js +0 -10
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Persil.fs.js +0 -414
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Preprocessing.fs.js +0 -319
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Reader.fs.js +0 -1884
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Regex.fs.js +0 -23
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/RegexActivePatterns.fs.js +0 -313
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Syntax.fs.js +0 -840
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/Writer.fs.js +0 -689
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0/YAMLiciousTypes.fs.js +0 -359
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KeyNotFoundException_$ctor_Z721C83C5 } from './System.Collections.Generic.js';
|
|
2
|
+
import { SR_keyNotFoundAlt, SR_inputMustBeNonNegative, SR_notEnoughElements, SR_indexOutOfBounds, SR_inputSequenceEmpty } from './Global.js';
|
|
3
|
+
import { Operators_InvalidArg, Operators_InvalidOp } from './FSharp.Core.js';
|
|
2
4
|
import { Helpers_allocateArrayFromCons } from './Native.js';
|
|
5
|
+
import { defaultOf, int32ToString, getEnumerator, disposeSafe } from './Util.js';
|
|
6
|
+
import { IndexOutOfRangeException_$ctor, ArgumentOutOfRangeException_$ctor_Z384F8060, ArgumentException_$ctor_Z721C83C5 } from './System.js';
|
|
3
7
|
import { some, defaultArg, value } from './Option.js';
|
|
4
8
|
import { max as max$1, min as min$1 } from './Double.js';
|
|
5
|
-
import { SR_indexOutOfBounds, SR_Arg_ArgumentOutOfRangeException, SR_inputSequenceEmpty, SR_inputMustBeNonNegative, SR_notEnoughElements } from './Global.js';
|
|
6
|
-
import { Operators_IsNull } from './FSharp.Core.js';
|
|
7
9
|
import { nonSeeded } from './Random.js';
|
|
8
10
|
|
|
9
11
|
function indexNotFound() {
|
|
10
|
-
throw
|
|
12
|
+
throw KeyNotFoundException_$ctor_Z721C83C5(SR_keyNotFoundAlt);
|
|
11
13
|
}
|
|
12
|
-
function differentLengths() {
|
|
13
|
-
throw
|
|
14
|
+
function differentLengths(paramName) {
|
|
15
|
+
throw Operators_InvalidArg(paramName, "The arrays have different lengths.");
|
|
14
16
|
}
|
|
15
17
|
function append(array1, array2, cons) {
|
|
16
18
|
const len1 = array1.length | 0;
|
|
@@ -28,16 +30,34 @@ function filter(predicate, array) {
|
|
|
28
30
|
return array.filter(predicate);
|
|
29
31
|
}
|
|
30
32
|
function fill(target, targetIndex, count, value) {
|
|
33
|
+
if (targetIndex < 0) {
|
|
34
|
+
throw Operators_InvalidArg("targetIndex", SR_inputMustBeNonNegative);
|
|
35
|
+
}
|
|
36
|
+
if (count < 0) {
|
|
37
|
+
throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
|
|
38
|
+
}
|
|
39
|
+
if (count > 0 && targetIndex + count > target.length) {
|
|
40
|
+
throw IndexOutOfRangeException_$ctor();
|
|
41
|
+
}
|
|
31
42
|
const start = targetIndex | 0;
|
|
32
43
|
return target.fill(value, start, start + count);
|
|
33
44
|
}
|
|
34
45
|
function getSubArray(array, start, count) {
|
|
46
|
+
if (start < 0) {
|
|
47
|
+
throw Operators_InvalidArg("startIndex", SR_inputMustBeNonNegative);
|
|
48
|
+
}
|
|
49
|
+
if (count < 0) {
|
|
50
|
+
throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
|
|
51
|
+
}
|
|
52
|
+
if (start + count > array.length) {
|
|
53
|
+
throw ArgumentOutOfRangeException_$ctor_Z384F8060("count", "The index is outside the legal range.");
|
|
54
|
+
}
|
|
35
55
|
const start_1 = start | 0;
|
|
36
56
|
return array.slice(start_1, start_1 + count);
|
|
37
57
|
}
|
|
38
58
|
function last(array) {
|
|
39
59
|
if (array.length === 0) {
|
|
40
|
-
throw
|
|
60
|
+
throw Operators_InvalidArg("array", "The input array was empty");
|
|
41
61
|
}
|
|
42
62
|
return item(array.length - 1, array);
|
|
43
63
|
}
|
|
@@ -66,7 +86,7 @@ function map(f, source, cons) {
|
|
|
66
86
|
}
|
|
67
87
|
function mapIndexed2(f, source1, source2, cons) {
|
|
68
88
|
if (source1.length !== source2.length) {
|
|
69
|
-
|
|
89
|
+
differentLengths("array1");
|
|
70
90
|
}
|
|
71
91
|
const result = Helpers_allocateArrayFromCons(cons, source1.length);
|
|
72
92
|
for (let i = 0; i <= source1.length - 1; i++) {
|
|
@@ -76,7 +96,7 @@ function mapIndexed2(f, source1, source2, cons) {
|
|
|
76
96
|
}
|
|
77
97
|
function map2(f, source1, source2, cons) {
|
|
78
98
|
if (source1.length !== source2.length) {
|
|
79
|
-
|
|
99
|
+
differentLengths("array1");
|
|
80
100
|
}
|
|
81
101
|
const result = Helpers_allocateArrayFromCons(cons, source1.length);
|
|
82
102
|
for (let i = 0; i <= source1.length - 1; i++) {
|
|
@@ -86,7 +106,7 @@ function map2(f, source1, source2, cons) {
|
|
|
86
106
|
}
|
|
87
107
|
function mapIndexed3(f, source1, source2, source3, cons) {
|
|
88
108
|
if (source1.length !== source2.length ? true : source2.length !== source3.length) {
|
|
89
|
-
|
|
109
|
+
differentLengths("array1, array2, array3");
|
|
90
110
|
}
|
|
91
111
|
const result = Helpers_allocateArrayFromCons(cons, source1.length);
|
|
92
112
|
for (let i = 0; i <= source1.length - 1; i++) {
|
|
@@ -96,7 +116,7 @@ function mapIndexed3(f, source1, source2, source3, cons) {
|
|
|
96
116
|
}
|
|
97
117
|
function map3(f, source1, source2, source3, cons) {
|
|
98
118
|
if (source1.length !== source2.length ? true : source2.length !== source3.length) {
|
|
99
|
-
|
|
119
|
+
differentLengths("array1, array2, array3");
|
|
100
120
|
}
|
|
101
121
|
const result = Helpers_allocateArrayFromCons(cons, source1.length);
|
|
102
122
|
for (let i = 0; i <= source1.length - 1; i++) {
|
|
@@ -182,7 +202,7 @@ function where(predicate, array) {
|
|
|
182
202
|
function indexOf(array, item_1, start, count, eq) {
|
|
183
203
|
let option_1 = void 0;
|
|
184
204
|
const start_1 = defaultArg(start, 0) | 0;
|
|
185
|
-
const end$0027 = defaultArg((option_1 = count, option_1 != null ? start_1 +
|
|
205
|
+
const end$0027 = defaultArg((option_1 = count, option_1 != null ? start_1 + option_1 : void 0), array.length) | 0;
|
|
186
206
|
const loop = (i_mut) => {
|
|
187
207
|
loop:
|
|
188
208
|
while (true) {
|
|
@@ -203,6 +223,55 @@ function indexOf(array, item_1, start, count, eq) {
|
|
|
203
223
|
function contains(value, array, eq) {
|
|
204
224
|
return indexOf(array, value, void 0, void 0, eq) >= 0;
|
|
205
225
|
}
|
|
226
|
+
function binarySearchFrom(array, index, length, value, comparer) {
|
|
227
|
+
const loop = (lo_mut, hi_mut) => {
|
|
228
|
+
loop:
|
|
229
|
+
while (true) {
|
|
230
|
+
const lo = lo_mut, hi = hi_mut;
|
|
231
|
+
if (lo > hi) {
|
|
232
|
+
return ~lo | 0;
|
|
233
|
+
} else {
|
|
234
|
+
const i = lo + (hi - lo >> 1) | 0;
|
|
235
|
+
const c = comparer.Compare(item(i, array), value) | 0;
|
|
236
|
+
if (c === 0) {
|
|
237
|
+
return i | 0;
|
|
238
|
+
} else if (c < 0) {
|
|
239
|
+
lo_mut = i + 1;
|
|
240
|
+
hi_mut = hi;
|
|
241
|
+
continue loop;
|
|
242
|
+
} else {
|
|
243
|
+
lo_mut = lo;
|
|
244
|
+
hi_mut = i - 1;
|
|
245
|
+
continue loop;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
return loop(index, index + length - 1) | 0;
|
|
252
|
+
}
|
|
253
|
+
function checkBinarySearchRange(lengthName, array, index, length) {
|
|
254
|
+
if (index < 0) {
|
|
255
|
+
throw ArgumentOutOfRangeException_$ctor_Z384F8060("index", "Non-negative number required.");
|
|
256
|
+
}
|
|
257
|
+
if (length < 0) {
|
|
258
|
+
throw ArgumentOutOfRangeException_$ctor_Z384F8060(lengthName, "Non-negative number required.");
|
|
259
|
+
}
|
|
260
|
+
if (array.length - index < length) {
|
|
261
|
+
throw ArgumentException_$ctor_Z721C83C5("Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.");
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function binarySearch(array, value, comparer) {
|
|
265
|
+
return binarySearchFrom(array, 0, array.length, value, comparer) | 0;
|
|
266
|
+
}
|
|
267
|
+
function binarySearchRange(array, index, length, value, comparer) {
|
|
268
|
+
checkBinarySearchRange("length", array, index, length);
|
|
269
|
+
return binarySearchFrom(array, index, length, value, comparer) | 0;
|
|
270
|
+
}
|
|
271
|
+
function binarySearchRangeCount(array, index, count, value, comparer) {
|
|
272
|
+
checkBinarySearchRange("count", array, index, count);
|
|
273
|
+
return binarySearchFrom(array, index, count, value, comparer) | 0;
|
|
274
|
+
}
|
|
206
275
|
function empty(cons) {
|
|
207
276
|
return Helpers_allocateArrayFromCons(cons, 0);
|
|
208
277
|
}
|
|
@@ -213,7 +282,7 @@ function singleton(value, cons) {
|
|
|
213
282
|
}
|
|
214
283
|
function initialize(count, initializer, cons) {
|
|
215
284
|
if (count < 0) {
|
|
216
|
-
throw
|
|
285
|
+
throw Operators_InvalidArg("count", "The input must be non-negative");
|
|
217
286
|
}
|
|
218
287
|
const result = Helpers_allocateArrayFromCons(cons, count);
|
|
219
288
|
for (let i = 0; i <= count - 1; i++) {
|
|
@@ -235,7 +304,7 @@ function pairwise(array) {
|
|
|
235
304
|
}
|
|
236
305
|
function replicate(count, initial, cons) {
|
|
237
306
|
if (count < 0) {
|
|
238
|
-
throw
|
|
307
|
+
throw Operators_InvalidArg("count", "The input must be non-negative");
|
|
239
308
|
}
|
|
240
309
|
const result = Helpers_allocateArrayFromCons(cons, count);
|
|
241
310
|
for (let i = 0; i <= result.length - 1; i++) {
|
|
@@ -246,8 +315,47 @@ function replicate(count, initial, cons) {
|
|
|
246
315
|
function copy(array) {
|
|
247
316
|
return array.slice();
|
|
248
317
|
}
|
|
318
|
+
function copyTypedArray(source, sourceIndex, target, targetIndex, count) {
|
|
319
|
+
target.set(source.subarray(sourceIndex, sourceIndex + count), targetIndex);
|
|
320
|
+
}
|
|
321
|
+
function argumentOutOfRange(paramName, value, requirement) {
|
|
322
|
+
throw ArgumentOutOfRangeException_$ctor_Z384F8060(paramName, paramName + " ('" + int32ToString(value) + "') must be " + requirement);
|
|
323
|
+
}
|
|
249
324
|
function copyTo(source, sourceIndex, target, targetIndex, count) {
|
|
250
|
-
|
|
325
|
+
if (count < 0) {
|
|
326
|
+
argumentOutOfRange("length", count, "a non-negative value.");
|
|
327
|
+
}
|
|
328
|
+
if (sourceIndex < 0) {
|
|
329
|
+
argumentOutOfRange("sourceIndex", sourceIndex, "greater than or equal to '0'.");
|
|
330
|
+
}
|
|
331
|
+
if (sourceIndex + count > source.length) {
|
|
332
|
+
throw Operators_InvalidArg("sourceArray", "Source array was not long enough. Check the source index, length, and the array's lower bounds.");
|
|
333
|
+
}
|
|
334
|
+
if (targetIndex < 0) {
|
|
335
|
+
argumentOutOfRange("destinationIndex", targetIndex, "greater than or equal to '0'.");
|
|
336
|
+
}
|
|
337
|
+
if (targetIndex + count > target.length) {
|
|
338
|
+
throw Operators_InvalidArg("destinationArray", "Destination array was not long enough. Check the destination index, length, and the array's lower bounds.");
|
|
339
|
+
}
|
|
340
|
+
if (ArrayBuffer.isView(source) && ArrayBuffer.isView(target)) {
|
|
341
|
+
copyTypedArray(source, sourceIndex, target, targetIndex, count);
|
|
342
|
+
} else if (sourceIndex < targetIndex) {
|
|
343
|
+
for (let i = count - 1; i >= 0; i--) {
|
|
344
|
+
const index_1 = targetIndex + i | 0;
|
|
345
|
+
let item_1;
|
|
346
|
+
const index = sourceIndex + i | 0;
|
|
347
|
+
item_1 = source[index];
|
|
348
|
+
target[index_1] = item_1;
|
|
349
|
+
}
|
|
350
|
+
} else {
|
|
351
|
+
for (let i_1 = 0; i_1 <= count - 1; i_1++) {
|
|
352
|
+
const index_3 = targetIndex + i_1 | 0;
|
|
353
|
+
let item_2;
|
|
354
|
+
const index_2 = sourceIndex + i_1 | 0;
|
|
355
|
+
item_2 = source[index_2];
|
|
356
|
+
target[index_3] = item_2;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
251
359
|
}
|
|
252
360
|
function reverse(array) {
|
|
253
361
|
const array_2 = array.slice();
|
|
@@ -271,7 +379,7 @@ function scanBack(folder, array, state, cons) {
|
|
|
271
379
|
}
|
|
272
380
|
function skip(count, array, cons) {
|
|
273
381
|
if (count > array.length) {
|
|
274
|
-
throw
|
|
382
|
+
throw ArgumentOutOfRangeException_$ctor_Z384F8060("count", "The index is outside the legal range.");
|
|
275
383
|
}
|
|
276
384
|
if (count === array.length) {
|
|
277
385
|
return Helpers_allocateArrayFromCons(cons, 0);
|
|
@@ -294,10 +402,10 @@ function skipWhile(predicate, array, cons) {
|
|
|
294
402
|
}
|
|
295
403
|
function take(count, array, cons) {
|
|
296
404
|
if (count < 0) {
|
|
297
|
-
throw
|
|
405
|
+
throw Operators_InvalidArg("count", "The input must be non-negative");
|
|
298
406
|
}
|
|
299
407
|
if (count > array.length) {
|
|
300
|
-
throw
|
|
408
|
+
throw Operators_InvalidOp(SR_notEnoughElements);
|
|
301
409
|
}
|
|
302
410
|
if (count === 0) {
|
|
303
411
|
return Helpers_allocateArrayFromCons(cons, 0);
|
|
@@ -586,7 +694,7 @@ function iterateIndexed(action, array) {
|
|
|
586
694
|
}
|
|
587
695
|
function iterate2(action, array1, array2) {
|
|
588
696
|
if (array1.length !== array2.length) {
|
|
589
|
-
differentLengths();
|
|
697
|
+
differentLengths("array1");
|
|
590
698
|
}
|
|
591
699
|
for (let i = 0; i <= array1.length - 1; i++) {
|
|
592
700
|
action(item(i, array1), item(i, array2));
|
|
@@ -594,7 +702,7 @@ function iterate2(action, array1, array2) {
|
|
|
594
702
|
}
|
|
595
703
|
function iterateIndexed2(action, array1, array2) {
|
|
596
704
|
if (array1.length !== array2.length) {
|
|
597
|
-
differentLengths();
|
|
705
|
+
differentLengths("array1");
|
|
598
706
|
}
|
|
599
707
|
for (let i = 0; i <= array1.length - 1; i++) {
|
|
600
708
|
action(i, item(i, array1), item(i, array2));
|
|
@@ -609,17 +717,19 @@ function forAll(predicate, array) {
|
|
|
609
717
|
function permute(f, array) {
|
|
610
718
|
const size = array.length | 0;
|
|
611
719
|
const res = array.slice();
|
|
612
|
-
|
|
720
|
+
let checkFlags;
|
|
721
|
+
const array_2 = new Array(size);
|
|
722
|
+
checkFlags = array_2.fill(0, 0, 0 + size);
|
|
613
723
|
iterateIndexed((i, x) => {
|
|
614
724
|
const j = f(i) | 0;
|
|
615
725
|
if (j < 0 ? true : j >= size) {
|
|
616
|
-
throw
|
|
726
|
+
throw Operators_InvalidArg("indexMap", "The function did not compute a permutation.");
|
|
617
727
|
}
|
|
618
728
|
setItem(res, j, x);
|
|
619
729
|
setItem(checkFlags, j, 1);
|
|
620
730
|
}, array);
|
|
621
731
|
if (!checkFlags.every((y) => 1 === y)) {
|
|
622
|
-
throw
|
|
732
|
+
throw Operators_InvalidArg("indexMap", "The function did not compute a permutation.");
|
|
623
733
|
}
|
|
624
734
|
return res;
|
|
625
735
|
}
|
|
@@ -682,8 +792,8 @@ function unfold(generator, state) {
|
|
|
682
792
|
const state_1 = state_1_mut;
|
|
683
793
|
const matchValue = generator(state_1);
|
|
684
794
|
if (matchValue != null) {
|
|
685
|
-
const x =
|
|
686
|
-
const s =
|
|
795
|
+
const x = matchValue[0];
|
|
796
|
+
const s = matchValue[1];
|
|
687
797
|
res.push(x);
|
|
688
798
|
state_1_mut = s;
|
|
689
799
|
continue loop;
|
|
@@ -718,7 +828,7 @@ function unzip3(array) {
|
|
|
718
828
|
}
|
|
719
829
|
function zip(array1, array2) {
|
|
720
830
|
if (array1.length !== array2.length) {
|
|
721
|
-
differentLengths();
|
|
831
|
+
differentLengths("array1");
|
|
722
832
|
}
|
|
723
833
|
const result = new Array(array1.length);
|
|
724
834
|
for (let i = 0; i <= array1.length - 1; i++) {
|
|
@@ -728,7 +838,7 @@ function zip(array1, array2) {
|
|
|
728
838
|
}
|
|
729
839
|
function zip3(array1, array2, array3) {
|
|
730
840
|
if (array1.length !== array2.length ? true : array2.length !== array3.length) {
|
|
731
|
-
differentLengths();
|
|
841
|
+
differentLengths("array1, array2, array3");
|
|
732
842
|
}
|
|
733
843
|
const result = new Array(array1.length);
|
|
734
844
|
for (let i = 0; i <= array1.length - 1; i++) {
|
|
@@ -738,7 +848,7 @@ function zip3(array1, array2, array3) {
|
|
|
738
848
|
}
|
|
739
849
|
function chunkBySize(chunkSize, array) {
|
|
740
850
|
if (chunkSize < 1) {
|
|
741
|
-
throw
|
|
851
|
+
throw Operators_InvalidArg("chunkSize", "The input must be positive.");
|
|
742
852
|
}
|
|
743
853
|
const result = [];
|
|
744
854
|
if (array.length > 0) {
|
|
@@ -753,19 +863,22 @@ function chunkBySize(chunkSize, array) {
|
|
|
753
863
|
return result;
|
|
754
864
|
}
|
|
755
865
|
function splitAt(index, array) {
|
|
756
|
-
if (index < 0
|
|
757
|
-
throw
|
|
866
|
+
if (index < 0) {
|
|
867
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
868
|
+
}
|
|
869
|
+
if (index > array.length) {
|
|
870
|
+
throw Operators_InvalidOp(SR_notEnoughElements);
|
|
758
871
|
}
|
|
759
872
|
return [array.slice(0, 0 + index), array.slice(index)];
|
|
760
873
|
}
|
|
761
874
|
function compareWith(comparer, source1, source2) {
|
|
762
|
-
if (
|
|
763
|
-
if (
|
|
875
|
+
if (source1 == null) {
|
|
876
|
+
if (source2 == null) {
|
|
764
877
|
return 0;
|
|
765
878
|
} else {
|
|
766
879
|
return -1;
|
|
767
880
|
}
|
|
768
|
-
} else if (
|
|
881
|
+
} else if (source2 == null) {
|
|
769
882
|
return 1;
|
|
770
883
|
} else {
|
|
771
884
|
const len1 = source1.length | 0;
|
|
@@ -789,13 +902,13 @@ function compareWith(comparer, source1, source2) {
|
|
|
789
902
|
}
|
|
790
903
|
}
|
|
791
904
|
function compareTo(comparer, source1, source2) {
|
|
792
|
-
if (
|
|
793
|
-
if (
|
|
905
|
+
if (source1 == null) {
|
|
906
|
+
if (source2 == null) {
|
|
794
907
|
return 0;
|
|
795
908
|
} else {
|
|
796
909
|
return -1;
|
|
797
910
|
}
|
|
798
|
-
} else if (
|
|
911
|
+
} else if (source2 == null) {
|
|
799
912
|
return 1;
|
|
800
913
|
} else {
|
|
801
914
|
const len1 = source1.length | 0;
|
|
@@ -816,13 +929,13 @@ function compareTo(comparer, source1, source2) {
|
|
|
816
929
|
}
|
|
817
930
|
}
|
|
818
931
|
function equalsWith(equals, source1, source2) {
|
|
819
|
-
if (
|
|
820
|
-
if (
|
|
932
|
+
if (source1 == null) {
|
|
933
|
+
if (source2 == null) {
|
|
821
934
|
return true;
|
|
822
935
|
} else {
|
|
823
936
|
return false;
|
|
824
937
|
}
|
|
825
|
-
} else if (
|
|
938
|
+
} else if (source2 == null) {
|
|
826
939
|
return false;
|
|
827
940
|
} else {
|
|
828
941
|
let i = 0;
|
|
@@ -847,9 +960,9 @@ function exactlyOne(array) {
|
|
|
847
960
|
case 1:
|
|
848
961
|
return item(0, array);
|
|
849
962
|
case 0:
|
|
850
|
-
throw
|
|
963
|
+
throw Operators_InvalidArg("array", "The input sequence was empty");
|
|
851
964
|
default:
|
|
852
|
-
throw
|
|
965
|
+
throw Operators_InvalidArg("array", "Input array too long");
|
|
853
966
|
}
|
|
854
967
|
}
|
|
855
968
|
function tryExactlyOne(array) {
|
|
@@ -861,7 +974,7 @@ function tryExactlyOne(array) {
|
|
|
861
974
|
}
|
|
862
975
|
function head(array) {
|
|
863
976
|
if (array.length === 0) {
|
|
864
|
-
throw
|
|
977
|
+
throw Operators_InvalidArg("array", "The input array was empty");
|
|
865
978
|
} else {
|
|
866
979
|
return item(0, array);
|
|
867
980
|
}
|
|
@@ -875,20 +988,21 @@ function tryHead(array) {
|
|
|
875
988
|
}
|
|
876
989
|
function tail(array) {
|
|
877
990
|
if (array.length === 0) {
|
|
878
|
-
throw
|
|
991
|
+
throw Operators_InvalidArg("array", "Not enough elements");
|
|
879
992
|
}
|
|
880
993
|
return array.slice(1);
|
|
881
994
|
}
|
|
882
995
|
function item(index, array) {
|
|
883
|
-
|
|
884
|
-
|
|
996
|
+
const value = array[index];
|
|
997
|
+
if (value === void 0 && (index < 0 ? true : index >= array.length)) {
|
|
998
|
+
throw Operators_InvalidArg("index", "Index was outside the bounds of the array.");
|
|
885
999
|
} else {
|
|
886
|
-
return
|
|
1000
|
+
return value;
|
|
887
1001
|
}
|
|
888
1002
|
}
|
|
889
1003
|
function setItem(array, index, value) {
|
|
890
1004
|
if (index < 0 ? true : index >= array.length) {
|
|
891
|
-
throw
|
|
1005
|
+
throw Operators_InvalidArg("index", "Index was outside the bounds of the array.");
|
|
892
1006
|
} else {
|
|
893
1007
|
array[index] = value;
|
|
894
1008
|
}
|
|
@@ -909,7 +1023,7 @@ function foldBack(folder, array, state) {
|
|
|
909
1023
|
function foldIndexed2(folder, state, array1, array2) {
|
|
910
1024
|
let acc = state;
|
|
911
1025
|
if (array1.length !== array2.length) {
|
|
912
|
-
|
|
1026
|
+
differentLengths("array1");
|
|
913
1027
|
}
|
|
914
1028
|
for (let i = 0; i <= array1.length - 1; i++) {
|
|
915
1029
|
acc = folder(i, acc, item(i, array1), item(i, array2));
|
|
@@ -922,7 +1036,7 @@ function fold2(folder, state, array1, array2) {
|
|
|
922
1036
|
function foldBackIndexed2(folder, array1, array2, state) {
|
|
923
1037
|
let acc = state;
|
|
924
1038
|
if (array1.length !== array2.length) {
|
|
925
|
-
differentLengths();
|
|
1039
|
+
differentLengths("array1");
|
|
926
1040
|
}
|
|
927
1041
|
const size = array1.length | 0;
|
|
928
1042
|
for (let i = 1; i <= size; i++) {
|
|
@@ -935,14 +1049,14 @@ function foldBack2(f, array1, array2, state) {
|
|
|
935
1049
|
}
|
|
936
1050
|
function reduce(reduction, array) {
|
|
937
1051
|
if (array.length === 0) {
|
|
938
|
-
throw
|
|
1052
|
+
throw Operators_InvalidArg("array", "The input array was empty");
|
|
939
1053
|
}
|
|
940
1054
|
const reduction_1 = reduction;
|
|
941
1055
|
return array.reduce(reduction_1);
|
|
942
1056
|
}
|
|
943
1057
|
function reduceBack(reduction, array) {
|
|
944
1058
|
if (array.length === 0) {
|
|
945
|
-
throw
|
|
1059
|
+
throw Operators_InvalidArg("array", "The input array was empty");
|
|
946
1060
|
}
|
|
947
1061
|
const reduction_1 = reduction;
|
|
948
1062
|
return array.reduceRight(reduction_1);
|
|
@@ -990,7 +1104,7 @@ function existsOffset2(predicate_mut, array1_mut, array2_mut, index_mut) {
|
|
|
990
1104
|
}
|
|
991
1105
|
function exists2(predicate, array1, array2) {
|
|
992
1106
|
if (array1.length !== array2.length) {
|
|
993
|
-
differentLengths();
|
|
1107
|
+
differentLengths("array1");
|
|
994
1108
|
}
|
|
995
1109
|
return existsOffset2(predicate, array1, array2, 0);
|
|
996
1110
|
}
|
|
@@ -1022,7 +1136,7 @@ function min(xs, comparer) {
|
|
|
1022
1136
|
}
|
|
1023
1137
|
function average(array, averager) {
|
|
1024
1138
|
if (array.length === 0) {
|
|
1025
|
-
throw
|
|
1139
|
+
throw Operators_InvalidArg("array", "The input array was empty");
|
|
1026
1140
|
}
|
|
1027
1141
|
let total = averager.GetZero();
|
|
1028
1142
|
for (let i = 0; i <= array.length - 1; i++) {
|
|
@@ -1032,7 +1146,7 @@ function average(array, averager) {
|
|
|
1032
1146
|
}
|
|
1033
1147
|
function averageBy(projection, array, averager) {
|
|
1034
1148
|
if (array.length === 0) {
|
|
1035
|
-
throw
|
|
1149
|
+
throw Operators_InvalidArg("array", "The input array was empty");
|
|
1036
1150
|
}
|
|
1037
1151
|
let total = averager.GetZero();
|
|
1038
1152
|
for (let i = 0; i <= array.length - 1; i++) {
|
|
@@ -1042,7 +1156,7 @@ function averageBy(projection, array, averager) {
|
|
|
1042
1156
|
}
|
|
1043
1157
|
function windowed(windowSize, source) {
|
|
1044
1158
|
if (windowSize <= 0) {
|
|
1045
|
-
throw
|
|
1159
|
+
throw Operators_InvalidArg("windowSize", "The input must be positive.");
|
|
1046
1160
|
}
|
|
1047
1161
|
let res;
|
|
1048
1162
|
const len = max$1(0, source.length - windowSize + 1) | 0;
|
|
@@ -1054,7 +1168,7 @@ function windowed(windowSize, source) {
|
|
|
1054
1168
|
}
|
|
1055
1169
|
function splitInto(chunks, array) {
|
|
1056
1170
|
if (chunks < 1) {
|
|
1057
|
-
throw
|
|
1171
|
+
throw Operators_InvalidArg("count", "The input must be positive.");
|
|
1058
1172
|
}
|
|
1059
1173
|
const result = [];
|
|
1060
1174
|
if (array.length > 0) {
|
|
@@ -1080,7 +1194,7 @@ function transpose(arrays, cons) {
|
|
|
1080
1194
|
const firstArray = item(0, arrays_1);
|
|
1081
1195
|
const lenInner = firstArray.length | 0;
|
|
1082
1196
|
if (!forAll((a) => a.length === lenInner, arrays_1)) {
|
|
1083
|
-
differentLengths();
|
|
1197
|
+
differentLengths("array.[0]");
|
|
1084
1198
|
}
|
|
1085
1199
|
const result = new Array(lenInner);
|
|
1086
1200
|
for (let i = 0; i <= lenInner - 1; i++) {
|
|
@@ -1095,7 +1209,7 @@ function transpose(arrays, cons) {
|
|
|
1095
1209
|
function insertAt(index, y, xs, cons) {
|
|
1096
1210
|
const len = xs.length | 0;
|
|
1097
1211
|
if (index < 0 ? true : index > len) {
|
|
1098
|
-
throw
|
|
1212
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1099
1213
|
}
|
|
1100
1214
|
const target = Helpers_allocateArrayFromCons(cons, len + 1);
|
|
1101
1215
|
for (let i = 0; i <= index - 1; i++) {
|
|
@@ -1110,7 +1224,7 @@ function insertAt(index, y, xs, cons) {
|
|
|
1110
1224
|
function insertManyAt(index, ys, xs, cons) {
|
|
1111
1225
|
const len = xs.length | 0;
|
|
1112
1226
|
if (index < 0 ? true : index > len) {
|
|
1113
|
-
throw
|
|
1227
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1114
1228
|
}
|
|
1115
1229
|
const ys_1 = Array.from(ys);
|
|
1116
1230
|
const len2 = ys_1.length | 0;
|
|
@@ -1131,7 +1245,7 @@ function randomShuffleInPlaceBy(randomizer, xs) {
|
|
|
1131
1245
|
for (let i = len - 1; i >= 1; i--) {
|
|
1132
1246
|
const r = randomizer();
|
|
1133
1247
|
if (r < 0 ? true : r >= 1) {
|
|
1134
|
-
throw
|
|
1248
|
+
throw ArgumentOutOfRangeException_$ctor_Z384F8060("randomizer", "The index is outside the legal range.");
|
|
1135
1249
|
}
|
|
1136
1250
|
const j = ~~(r * (i + 1)) | 0;
|
|
1137
1251
|
const tmp = item(i, xs);
|
|
@@ -1158,12 +1272,12 @@ function randomShuffle(xs) {
|
|
|
1158
1272
|
}
|
|
1159
1273
|
function randomChoiceBy(randomizer, xs) {
|
|
1160
1274
|
if (isEmpty(xs)) {
|
|
1161
|
-
throw
|
|
1275
|
+
throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
|
|
1162
1276
|
}
|
|
1163
1277
|
const len = xs.length | 0;
|
|
1164
1278
|
const r = randomizer();
|
|
1165
1279
|
if (r < 0 ? true : r >= 1) {
|
|
1166
|
-
throw
|
|
1280
|
+
throw ArgumentOutOfRangeException_$ctor_Z384F8060("randomizer", "The index is outside the legal range.");
|
|
1167
1281
|
}
|
|
1168
1282
|
return item(~~(r * len), xs);
|
|
1169
1283
|
}
|
|
@@ -1175,16 +1289,16 @@ function randomChoice(xs) {
|
|
|
1175
1289
|
}
|
|
1176
1290
|
function randomChoicesBy(randomizer, count, xs, cons) {
|
|
1177
1291
|
if (count < 0) {
|
|
1178
|
-
throw
|
|
1292
|
+
throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
|
|
1179
1293
|
}
|
|
1180
1294
|
if (count > 0 && isEmpty(xs)) {
|
|
1181
|
-
throw
|
|
1295
|
+
throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
|
|
1182
1296
|
}
|
|
1183
1297
|
const len = xs.length | 0;
|
|
1184
1298
|
return initialize(count, (_arg) => {
|
|
1185
1299
|
const r = randomizer();
|
|
1186
1300
|
if (r < 0 ? true : r >= 1) {
|
|
1187
|
-
throw
|
|
1301
|
+
throw ArgumentOutOfRangeException_$ctor_Z384F8060("randomizer", "The index is outside the legal range.");
|
|
1188
1302
|
}
|
|
1189
1303
|
return item(~~(r * len), xs);
|
|
1190
1304
|
}, cons);
|
|
@@ -1197,20 +1311,20 @@ function randomChoices(count, xs, cons) {
|
|
|
1197
1311
|
}
|
|
1198
1312
|
function randomSampleBy(randomizer, count, xs) {
|
|
1199
1313
|
if (count < 0) {
|
|
1200
|
-
throw
|
|
1314
|
+
throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
|
|
1201
1315
|
}
|
|
1202
1316
|
const arr = copy(xs);
|
|
1203
1317
|
const len = arr.length | 0;
|
|
1204
1318
|
if (len === 0 && count > 0) {
|
|
1205
|
-
throw
|
|
1319
|
+
throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
|
|
1206
1320
|
}
|
|
1207
1321
|
if (count > len) {
|
|
1208
|
-
throw
|
|
1322
|
+
throw Operators_InvalidArg("count", SR_notEnoughElements);
|
|
1209
1323
|
}
|
|
1210
1324
|
for (let i = 0; i <= count - 1; i++) {
|
|
1211
1325
|
const r = randomizer();
|
|
1212
1326
|
if (r < 0 ? true : r >= 1) {
|
|
1213
|
-
throw
|
|
1327
|
+
throw ArgumentOutOfRangeException_$ctor_Z384F8060("randomizer", "The index is outside the legal range.");
|
|
1214
1328
|
}
|
|
1215
1329
|
const j = i + ~~(r * (len - i)) | 0;
|
|
1216
1330
|
const tmp = item(i, arr);
|
|
@@ -1227,7 +1341,7 @@ function randomSample(count, xs) {
|
|
|
1227
1341
|
}
|
|
1228
1342
|
function removeAt(index, xs) {
|
|
1229
1343
|
if (index < 0 ? true : index >= xs.length) {
|
|
1230
|
-
throw
|
|
1344
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1231
1345
|
}
|
|
1232
1346
|
let i = -1;
|
|
1233
1347
|
return filter((_arg) => {
|
|
@@ -1236,34 +1350,23 @@ function removeAt(index, xs) {
|
|
|
1236
1350
|
}, xs);
|
|
1237
1351
|
}
|
|
1238
1352
|
function removeManyAt(index, count, xs) {
|
|
1353
|
+
if ((index < 0 ? true : index > xs.length - count) ? true : index > xs.length) {
|
|
1354
|
+
throw Operators_InvalidArg("index", "index must be within bounds of the array");
|
|
1355
|
+
}
|
|
1239
1356
|
let i = -1;
|
|
1240
|
-
|
|
1241
|
-
const ys = filter((_arg) => {
|
|
1357
|
+
return filter((_arg) => {
|
|
1242
1358
|
i = i + 1 | 0;
|
|
1243
|
-
if (i
|
|
1244
|
-
status = 0;
|
|
1245
|
-
return false;
|
|
1246
|
-
} else if (i > index) {
|
|
1247
|
-
if (i < index + count) {
|
|
1248
|
-
return false;
|
|
1249
|
-
} else {
|
|
1250
|
-
status = 1;
|
|
1251
|
-
return true;
|
|
1252
|
-
}
|
|
1253
|
-
} else {
|
|
1359
|
+
if (i < index) {
|
|
1254
1360
|
return true;
|
|
1361
|
+
} else {
|
|
1362
|
+
return i >= index + count;
|
|
1255
1363
|
}
|
|
1256
1364
|
}, xs);
|
|
1257
|
-
const status_1 = (status === 0 && i + 1 === index + count ? 1 : status) | 0;
|
|
1258
|
-
if (status_1 < 1) {
|
|
1259
|
-
throw new Exception(SR_indexOutOfBounds + (" (Parameter '" + (status_1 < 0 ? "index" : "count") + "')"));
|
|
1260
|
-
}
|
|
1261
|
-
return ys;
|
|
1262
1365
|
}
|
|
1263
1366
|
function updateAt(index, y, xs, cons) {
|
|
1264
1367
|
const len = xs.length | 0;
|
|
1265
1368
|
if (index < 0 ? true : index >= len) {
|
|
1266
|
-
throw
|
|
1369
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1267
1370
|
}
|
|
1268
1371
|
const target = Helpers_allocateArrayFromCons(cons, len);
|
|
1269
1372
|
for (let i = 0; i <= len - 1; i++) {
|
|
@@ -1274,10 +1377,10 @@ function updateAt(index, y, xs, cons) {
|
|
|
1274
1377
|
function resize(xs, newSize, zero, cons) {
|
|
1275
1378
|
let array = void 0, array_1 = void 0, start_2 = void 0, count_2 = void 0;
|
|
1276
1379
|
if (newSize < 0) {
|
|
1277
|
-
throw
|
|
1380
|
+
throw Operators_InvalidArg("newSize", "The input must be non-negative.");
|
|
1278
1381
|
}
|
|
1279
1382
|
const zero_1 = defaultArg(zero, defaultOf());
|
|
1280
|
-
if (
|
|
1383
|
+
if (xs.contents == null) {
|
|
1281
1384
|
xs.contents = (array = Helpers_allocateArrayFromCons(cons, newSize), array.fill(zero_1, 0, 0 + newSize));
|
|
1282
1385
|
} else {
|
|
1283
1386
|
const len = xs.contents.length | 0;
|
|
@@ -1293,4 +1396,4 @@ function resize(xs, newSize, zero, cons) {
|
|
|
1293
1396
|
}
|
|
1294
1397
|
}
|
|
1295
1398
|
|
|
1296
|
-
export { addInPlace, addRangeInPlace, allPairs, append, average, averageBy, choose, chunkBySize, collect, compareTo, compareWith, concat, contains, copy, copyTo, empty, equalsWith, exactlyOne, exists, exists2, existsOffset, existsOffset2, fill, filter, find, findAll, findBack, findIndex, findIndexBack, findLastIndex, fold, fold2, foldBack, foldBack2, foldBackIndexed, foldBackIndexed2, foldIndexed, foldIndexed2, forAll, forAll2, getRange, getSubArray, head, indexOf, indexed, initialize, insertAt, insertManyAt, insertRangeInPlace, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, mapIndexed3, max, maxBy, min, minBy, pairwise, partition, permute, pick, randomChoice, randomChoiceBy, randomChoiceWith, randomChoices, randomChoicesBy, randomChoicesWith, randomSample, randomSampleBy, randomSampleWith, randomShuffle, randomShuffleBy, randomShuffleInPlace, randomShuffleInPlaceBy, randomShuffleInPlaceWith, randomShuffleWith, reduce, reduceBack, removeAllInPlace, removeAt, removeInPlace, removeManyAt, replicate, resize, reverse, scan, scanBack, setItem, setSlice, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortInPlace, sortInPlaceBy, sortWith, splitAt, splitInto, sum, sumBy, tail, take, takeWhile, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, unzip, unzip3, updateAt, where, windowed, zip, zip3 };
|
|
1399
|
+
export { addInPlace, addRangeInPlace, allPairs, append, average, averageBy, binarySearch, binarySearchRange, binarySearchRangeCount, choose, chunkBySize, collect, compareTo, compareWith, concat, contains, copy, copyTo, empty, equalsWith, exactlyOne, exists, exists2, existsOffset, existsOffset2, fill, filter, find, findAll, findBack, findIndex, findIndexBack, findLastIndex, fold, fold2, foldBack, foldBack2, foldBackIndexed, foldBackIndexed2, foldIndexed, foldIndexed2, forAll, forAll2, getRange, getSubArray, head, indexOf, indexed, initialize, insertAt, insertManyAt, insertRangeInPlace, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, mapIndexed3, max, maxBy, min, minBy, pairwise, partition, permute, pick, randomChoice, randomChoiceBy, randomChoiceWith, randomChoices, randomChoicesBy, randomChoicesWith, randomSample, randomSampleBy, randomSampleWith, randomShuffle, randomShuffleBy, randomShuffleInPlace, randomShuffleInPlaceBy, randomShuffleInPlaceWith, randomShuffleWith, reduce, reduceBack, removeAllInPlace, removeAt, removeInPlace, removeManyAt, replicate, resize, reverse, scan, scanBack, setItem, setSlice, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortInPlace, sortInPlaceBy, sortWith, splitAt, splitInto, sum, sumBy, tail, take, takeWhile, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, unzip, unzip3, updateAt, where, windowed, zip, zip3 };
|