@nfdi4plants/arctrl 3.2.2 → 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/README.md +0 -64
- 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 +22 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +282 -185
- 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 +7 -0
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +95 -18
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -0
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +12 -5
- 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.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Investigation.js +15 -14
- package/dist/ts/ts/Conversion/Person.js +11 -11
- package/dist/ts/ts/Conversion/Process.d.ts +4 -2
- package/dist/ts/ts/Conversion/Process.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Process.js +134 -97
- 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.d.ts +3 -2
- package/dist/ts/ts/Conversion/Table.d.ts.map +1 -1
- package/dist/ts/ts/Conversion/Table.js +8 -8
- 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 +68 -59
- package/dist/ts/ts/Core/Data.d.ts +6 -0
- package/dist/ts/ts/Core/Data.d.ts.map +1 -1
- package/dist/ts/ts/Core/Data.js +32 -12
- 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 +59 -70
- package/dist/ts/ts/Core/Table/ArcTables.js +16 -16
- package/dist/ts/ts/Core/Table/CompositeCell.d.ts +4 -0
- package/dist/ts/ts/Core/Table/CompositeCell.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/CompositeCell.js +39 -2
- 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.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +10 -12
- 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 +8 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts +8 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +18 -7
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +4 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -8
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +5 -7
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +2 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +7 -9
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +6 -8
- 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 +9 -11
- 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 +10 -12
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +7 -9
- 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,18 +1,19 @@
|
|
|
1
|
-
import { NotSupportedException_$ctor_Z721C83C5, InvalidOperationException_$ctor_Z721C83C5 } from './System.js';
|
|
2
|
-
import { getEnumerator, disposeSafe, toIterator, isArrayLike, isDisposable,
|
|
1
|
+
import { NotSupportedException_$ctor_Z721C83C5, InvalidOperationException_$ctor_Z721C83C5, ArgumentOutOfRangeException_$ctor_Z721C83C5 } from './System.js';
|
|
2
|
+
import { getEnumerator, disposeSafe, toIterator, isArrayLike, isDisposable, clear } from './Util.js';
|
|
3
3
|
import { toString } from './Types.js';
|
|
4
4
|
import { class_type } from './Reflection.js';
|
|
5
5
|
import { value, some } from './Option.js';
|
|
6
6
|
import { KeyNotFoundException_$ctor_Z721C83C5 } from './System.Collections.Generic.js';
|
|
7
|
-
import { Operators_NullArgCheck, Operators_Lock } from './FSharp.Core.js';
|
|
8
|
-
import { singleton as singleton$1, tryFindBack as tryFindBack$1, tryFindIndexBack as tryFindIndexBack$1, foldBack as foldBack$1, item as item$1, tryHead as tryHead$1, tryItem as tryItem$1, mapFold as mapFold$1, mapFoldBack as mapFoldBack$1, reverse as reverse$1, scanBack as scanBack$1, pairwise as pairwise$1, splitInto as splitInto$1, windowed as windowed$1,
|
|
7
|
+
import { Operators_NullArgCheck, Operators_InvalidArg, Operators_Lock, Operators_InvalidOp } from './FSharp.Core.js';
|
|
8
|
+
import { singleton as singleton$1, tryFindBack as tryFindBack$1, tryFindIndexBack as tryFindIndexBack$1, foldBack as foldBack$1, item as item$1, tryHead as tryHead$1, tryItem as tryItem$1, mapFold as mapFold$1, mapFoldBack as mapFoldBack$1, reduceBack as reduceBack$1, reverse as reverse$1, scanBack as scanBack$1, pairwise as pairwise$1, splitInto as splitInto$1, windowed as windowed$1, permute as permute$1, chunkBySize as chunkBySize$1, randomShuffleInPlaceBy, randomChoiceBy as randomChoiceBy$1, randomChoiceWith as randomChoiceWith$1, randomChoice as randomChoice$1, randomChoicesBy as randomChoicesBy$1, randomSampleBy as randomSampleBy$1 } from './Array.js';
|
|
9
9
|
import { FSharpList, toArray as toArray$1, ofArray as ofArray$1, ofSeq as ofSeq$1, tryHead as tryHead$2, isEmpty as isEmpty$1, tryItem as tryItem$2, length as length$1 } from './List.js';
|
|
10
10
|
import { min as min$1 } from './Double.js';
|
|
11
|
-
import { SR_indexOutOfBounds } from './Global.js';
|
|
11
|
+
import { SR_inputMustBeNonNegative, SR_indexOutOfBounds } from './Global.js';
|
|
12
12
|
import { nonSeeded } from './Random.js';
|
|
13
13
|
|
|
14
14
|
const SR_enumerationAlreadyFinished = "Enumeration already finished.";
|
|
15
15
|
const SR_enumerationNotStarted = "Enumeration has not started. Call MoveNext.";
|
|
16
|
+
const SR_inputMustBePositive = "The input must be positive.";
|
|
16
17
|
const SR_inputSequenceEmpty = "The input sequence was empty.";
|
|
17
18
|
const SR_inputSequenceTooLong = "The input sequence contains more than one element.";
|
|
18
19
|
const SR_keyNotFoundAlt = "An index satisfying the predicate was not found in the collection.";
|
|
@@ -116,7 +117,7 @@ function Enumerator_concat(sources) {
|
|
|
116
117
|
const finish = () => {
|
|
117
118
|
finished = true;
|
|
118
119
|
if (innerOpt != null) {
|
|
119
|
-
const inner =
|
|
120
|
+
const inner = innerOpt;
|
|
120
121
|
try {
|
|
121
122
|
disposeSafe(inner);
|
|
122
123
|
} finally {
|
|
@@ -124,7 +125,7 @@ function Enumerator_concat(sources) {
|
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
if (outerOpt != null) {
|
|
127
|
-
const outer =
|
|
128
|
+
const outer = outerOpt;
|
|
128
129
|
try {
|
|
129
130
|
disposeSafe(outer);
|
|
130
131
|
} finally {
|
|
@@ -157,7 +158,7 @@ function Enumerator_concat(sources) {
|
|
|
157
158
|
const innerOpt_1 = innerOpt;
|
|
158
159
|
if (outerOpt_1 != null) {
|
|
159
160
|
if (innerOpt_1 != null) {
|
|
160
|
-
const inner_1 =
|
|
161
|
+
const inner_1 = innerOpt_1;
|
|
161
162
|
if (inner_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
162
163
|
curr = some(inner_1["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
163
164
|
res = true;
|
|
@@ -169,7 +170,7 @@ function Enumerator_concat(sources) {
|
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
} else {
|
|
172
|
-
const outer_1 =
|
|
173
|
+
const outer_1 = outerOpt_1;
|
|
173
174
|
if (outer_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
174
175
|
const ie = outer_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
175
176
|
innerOpt = (copyOfStruct = ie, getEnumerator(copyOfStruct));
|
|
@@ -259,8 +260,8 @@ function Enumerator_unfold(f, state) {
|
|
|
259
260
|
let acc = state;
|
|
260
261
|
return Enumerator_FromFunctions$1_$ctor_58C54629(() => {
|
|
261
262
|
if (curr != null) {
|
|
262
|
-
const x =
|
|
263
|
-
|
|
263
|
+
const x = curr[0];
|
|
264
|
+
curr[1];
|
|
264
265
|
return x;
|
|
265
266
|
} else {
|
|
266
267
|
return Enumerator_notStarted();
|
|
@@ -268,8 +269,8 @@ function Enumerator_unfold(f, state) {
|
|
|
268
269
|
}, () => {
|
|
269
270
|
curr = f(acc);
|
|
270
271
|
if (curr != null) {
|
|
271
|
-
|
|
272
|
-
const st_1 =
|
|
272
|
+
curr[0];
|
|
273
|
+
const st_1 = curr[1];
|
|
273
274
|
acc = st_1;
|
|
274
275
|
return true;
|
|
275
276
|
} else {
|
|
@@ -306,11 +307,21 @@ function ofArray(arr) {
|
|
|
306
307
|
return arr;
|
|
307
308
|
}
|
|
308
309
|
function toArray(xs) {
|
|
309
|
-
if (xs
|
|
310
|
-
const a = xs;
|
|
311
|
-
return toArray$1(a);
|
|
312
|
-
} else {
|
|
310
|
+
if (isArrayLike(xs)) {
|
|
313
311
|
return Array.from(xs);
|
|
312
|
+
} else if (xs instanceof FSharpList) {
|
|
313
|
+
return toArray$1(xs);
|
|
314
|
+
} else {
|
|
315
|
+
const res = [];
|
|
316
|
+
const e = getEnumerator(xs);
|
|
317
|
+
try {
|
|
318
|
+
while (e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
319
|
+
void res.push(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
320
|
+
}
|
|
321
|
+
return res.slice();
|
|
322
|
+
} finally {
|
|
323
|
+
disposeSafe(e);
|
|
324
|
+
}
|
|
314
325
|
}
|
|
315
326
|
}
|
|
316
327
|
function ofList(xs) {
|
|
@@ -444,7 +455,7 @@ function enumerateTryWith(source, catchFilter, catchHandler) {
|
|
|
444
455
|
e = en_1;
|
|
445
456
|
en_2 = en_1;
|
|
446
457
|
} else {
|
|
447
|
-
en_2 =
|
|
458
|
+
en_2 = e;
|
|
448
459
|
}
|
|
449
460
|
if (en_2["System.Collections.IEnumerator.MoveNext"]()) {
|
|
450
461
|
curr = some(en_2["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
@@ -460,7 +471,7 @@ function enumerateTryWith(source, catchFilter, catchHandler) {
|
|
|
460
471
|
caught = true;
|
|
461
472
|
if (e == null) {
|
|
462
473
|
} else {
|
|
463
|
-
const en_3 =
|
|
474
|
+
const en_3 = e;
|
|
464
475
|
try {
|
|
465
476
|
disposeSafe(en_3);
|
|
466
477
|
} catch (matchValue_1) {
|
|
@@ -500,7 +511,7 @@ function enumerateTryWith(source, catchFilter, catchHandler) {
|
|
|
500
511
|
}, () => {
|
|
501
512
|
if (e == null) {
|
|
502
513
|
} else {
|
|
503
|
-
disposeSafe(
|
|
514
|
+
disposeSafe(e);
|
|
504
515
|
}
|
|
505
516
|
});
|
|
506
517
|
});
|
|
@@ -549,12 +560,12 @@ function exactlyOne(xs) {
|
|
|
549
560
|
if (e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
550
561
|
const v = e["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
551
562
|
if (e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
552
|
-
throw
|
|
563
|
+
throw Operators_InvalidArg("source", SR_inputSequenceTooLong);
|
|
553
564
|
} else {
|
|
554
565
|
return v;
|
|
555
566
|
}
|
|
556
567
|
} else {
|
|
557
|
-
throw
|
|
568
|
+
throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
|
|
558
569
|
}
|
|
559
570
|
} finally {
|
|
560
571
|
disposeSafe(e);
|
|
@@ -638,7 +649,7 @@ function findIndex(predicate, xs) {
|
|
|
638
649
|
indexNotFound();
|
|
639
650
|
return -1;
|
|
640
651
|
} else {
|
|
641
|
-
return
|
|
652
|
+
return matchValue | 0;
|
|
642
653
|
}
|
|
643
654
|
}
|
|
644
655
|
function tryFindIndexBack(predicate, xs) {
|
|
@@ -650,7 +661,7 @@ function findIndexBack(predicate, xs) {
|
|
|
650
661
|
indexNotFound();
|
|
651
662
|
return -1;
|
|
652
663
|
} else {
|
|
653
|
-
return
|
|
664
|
+
return matchValue | 0;
|
|
654
665
|
}
|
|
655
666
|
}
|
|
656
667
|
function fold(folder, state, xs) {
|
|
@@ -718,12 +729,15 @@ function tryHead(xs) {
|
|
|
718
729
|
function head(xs) {
|
|
719
730
|
const matchValue = tryHead(xs);
|
|
720
731
|
if (matchValue == null) {
|
|
721
|
-
throw
|
|
732
|
+
throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
|
|
722
733
|
} else {
|
|
723
734
|
return value(matchValue);
|
|
724
735
|
}
|
|
725
736
|
}
|
|
726
737
|
function initialize(count, f) {
|
|
738
|
+
if (count < 0) {
|
|
739
|
+
throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
|
|
740
|
+
}
|
|
727
741
|
return unfold((i) => i < count ? [f(i), i + 1] : void 0, 0);
|
|
728
742
|
}
|
|
729
743
|
function initializeInfinite(f) {
|
|
@@ -776,7 +790,7 @@ function tryItem(index, xs) {
|
|
|
776
790
|
function item(index, xs) {
|
|
777
791
|
const matchValue = tryItem(index, xs);
|
|
778
792
|
if (matchValue == null) {
|
|
779
|
-
throw
|
|
793
|
+
throw Operators_InvalidArg("index", SR_notEnoughElements);
|
|
780
794
|
} else {
|
|
781
795
|
return value(matchValue);
|
|
782
796
|
}
|
|
@@ -827,7 +841,7 @@ function tryLast(xs) {
|
|
|
827
841
|
function last(xs) {
|
|
828
842
|
const matchValue = tryLast(xs);
|
|
829
843
|
if (matchValue == null) {
|
|
830
|
-
throw
|
|
844
|
+
throw Operators_InvalidArg("source", SR_notEnoughElements);
|
|
831
845
|
} else {
|
|
832
846
|
return value(matchValue);
|
|
833
847
|
}
|
|
@@ -952,7 +966,7 @@ function cache(source) {
|
|
|
952
966
|
if (enumeratorR != null) {
|
|
953
967
|
if (value(enumeratorR) != null) {
|
|
954
968
|
matchResult = 0;
|
|
955
|
-
e = value(
|
|
969
|
+
e = value(enumeratorR);
|
|
956
970
|
} else {
|
|
957
971
|
matchResult = 1;
|
|
958
972
|
}
|
|
@@ -982,7 +996,7 @@ function cache(source) {
|
|
|
982
996
|
}
|
|
983
997
|
if (optEnumerator_2 == null) {
|
|
984
998
|
} else {
|
|
985
|
-
const enumerator =
|
|
999
|
+
const enumerator = optEnumerator_2;
|
|
986
1000
|
if (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
987
1001
|
void prefix.push(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
988
1002
|
} else {
|
|
@@ -1050,7 +1064,7 @@ function reduce(folder, xs) {
|
|
|
1050
1064
|
if (e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1051
1065
|
return loop(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
1052
1066
|
} else {
|
|
1053
|
-
throw
|
|
1067
|
+
throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
|
|
1054
1068
|
}
|
|
1055
1069
|
} finally {
|
|
1056
1070
|
disposeSafe(e);
|
|
@@ -1059,12 +1073,15 @@ function reduce(folder, xs) {
|
|
|
1059
1073
|
function reduceBack(folder, xs) {
|
|
1060
1074
|
const arr = toArray(xs);
|
|
1061
1075
|
if (arr.length > 0) {
|
|
1062
|
-
return
|
|
1076
|
+
return reduceBack$1(folder, arr);
|
|
1063
1077
|
} else {
|
|
1064
|
-
throw
|
|
1078
|
+
throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
|
|
1065
1079
|
}
|
|
1066
1080
|
}
|
|
1067
1081
|
function replicate(n, x) {
|
|
1082
|
+
if (n < 0) {
|
|
1083
|
+
throw ArgumentOutOfRangeException_$ctor_Z721C83C5("count");
|
|
1084
|
+
}
|
|
1068
1085
|
return initialize(n, (_arg) => x);
|
|
1069
1086
|
}
|
|
1070
1087
|
function reverse(xs) {
|
|
@@ -1088,7 +1105,7 @@ function skip(count, source) {
|
|
|
1088
1105
|
try {
|
|
1089
1106
|
for (let _ = 1; _ <= count; _++) {
|
|
1090
1107
|
if (!e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1091
|
-
throw
|
|
1108
|
+
throw Operators_InvalidOp(SR_notEnoughElements);
|
|
1092
1109
|
}
|
|
1093
1110
|
}
|
|
1094
1111
|
return Enumerator_enumerateThenFinally(() => {
|
|
@@ -1111,15 +1128,30 @@ function skipWhile(predicate, xs) {
|
|
|
1111
1128
|
});
|
|
1112
1129
|
}
|
|
1113
1130
|
function tail(xs) {
|
|
1114
|
-
return
|
|
1131
|
+
return mkSeq(() => {
|
|
1132
|
+
const e = ofSeq(xs);
|
|
1133
|
+
try {
|
|
1134
|
+
if (!e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1135
|
+
throw Operators_InvalidArg("source", SR_notEnoughElements);
|
|
1136
|
+
}
|
|
1137
|
+
return Enumerator_enumerateThenFinally(() => {
|
|
1138
|
+
}, e);
|
|
1139
|
+
} catch (matchValue) {
|
|
1140
|
+
disposeSafe(e);
|
|
1141
|
+
throw matchValue;
|
|
1142
|
+
}
|
|
1143
|
+
});
|
|
1115
1144
|
}
|
|
1116
1145
|
function take(count, xs) {
|
|
1146
|
+
if (count < 0) {
|
|
1147
|
+
throw Operators_InvalidArg("count", SR_inputMustBeNonNegative);
|
|
1148
|
+
}
|
|
1117
1149
|
return generateIndexed(() => ofSeq(xs), (i, e) => {
|
|
1118
1150
|
if (i < count) {
|
|
1119
1151
|
if (e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1120
1152
|
return some(e["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
1121
1153
|
} else {
|
|
1122
|
-
throw
|
|
1154
|
+
throw Operators_InvalidOp(SR_notEnoughElements);
|
|
1123
1155
|
}
|
|
1124
1156
|
} else {
|
|
1125
1157
|
return void 0;
|
|
@@ -1154,13 +1186,45 @@ function pairwise(xs) {
|
|
|
1154
1186
|
return delay(() => ofArray(pairwise$1(toArray(xs))));
|
|
1155
1187
|
}
|
|
1156
1188
|
function splitInto(chunks, xs) {
|
|
1189
|
+
if (chunks < 1) {
|
|
1190
|
+
throw Operators_InvalidArg("count", SR_inputMustBePositive);
|
|
1191
|
+
}
|
|
1157
1192
|
return delay(() => ofArray(splitInto$1(chunks, toArray(xs))));
|
|
1158
1193
|
}
|
|
1159
1194
|
function windowed(windowSize, xs) {
|
|
1195
|
+
if (windowSize < 1) {
|
|
1196
|
+
throw Operators_InvalidArg("windowSize", SR_inputMustBePositive);
|
|
1197
|
+
}
|
|
1160
1198
|
return delay(() => ofArray(windowed$1(windowSize, toArray(xs))));
|
|
1161
1199
|
}
|
|
1162
1200
|
function transpose(xss) {
|
|
1163
|
-
return delay(() =>
|
|
1201
|
+
return delay(() => {
|
|
1202
|
+
const rows = [];
|
|
1203
|
+
const enumerator = getEnumerator(xss);
|
|
1204
|
+
try {
|
|
1205
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1206
|
+
let i = 0;
|
|
1207
|
+
let enumerator_1;
|
|
1208
|
+
let copyOfStruct = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1209
|
+
enumerator_1 = getEnumerator(copyOfStruct);
|
|
1210
|
+
try {
|
|
1211
|
+
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1212
|
+
const x = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1213
|
+
if (i === rows.length) {
|
|
1214
|
+
void rows.push([]);
|
|
1215
|
+
}
|
|
1216
|
+
void item$1(i, rows).push(x);
|
|
1217
|
+
i = i + 1 | 0;
|
|
1218
|
+
}
|
|
1219
|
+
} finally {
|
|
1220
|
+
disposeSafe(enumerator_1);
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
} finally {
|
|
1224
|
+
disposeSafe(enumerator);
|
|
1225
|
+
}
|
|
1226
|
+
return map((row) => row, rows);
|
|
1227
|
+
});
|
|
1164
1228
|
}
|
|
1165
1229
|
function sortWith(comparer, xs) {
|
|
1166
1230
|
return delay(() => {
|
|
@@ -1206,7 +1270,7 @@ function average(xs, averager) {
|
|
|
1206
1270
|
return averager.Add(acc, x);
|
|
1207
1271
|
}, averager.GetZero(), xs);
|
|
1208
1272
|
if (count === 0) {
|
|
1209
|
-
throw
|
|
1273
|
+
throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
|
|
1210
1274
|
} else {
|
|
1211
1275
|
return averager.DivideByInt(total, count);
|
|
1212
1276
|
}
|
|
@@ -1218,7 +1282,7 @@ function averageBy(f, xs, averager) {
|
|
|
1218
1282
|
return averager.Add(acc, f(x));
|
|
1219
1283
|
}, averager.GetZero(), xs);
|
|
1220
1284
|
if (count === 0) {
|
|
1221
|
-
throw
|
|
1285
|
+
throw Operators_InvalidArg("source", SR_inputSequenceEmpty);
|
|
1222
1286
|
} else {
|
|
1223
1287
|
return averager.DivideByInt(total, count);
|
|
1224
1288
|
}
|
|
@@ -1227,12 +1291,15 @@ function permute(f, xs) {
|
|
|
1227
1291
|
return delay(() => ofArray(permute$1(f, toArray(xs))));
|
|
1228
1292
|
}
|
|
1229
1293
|
function chunkBySize(chunkSize, xs) {
|
|
1294
|
+
if (chunkSize < 1) {
|
|
1295
|
+
throw Operators_InvalidArg("chunkSize", SR_inputMustBePositive);
|
|
1296
|
+
}
|
|
1230
1297
|
return delay(() => ofArray(chunkBySize$1(chunkSize, toArray(xs))));
|
|
1231
1298
|
}
|
|
1232
1299
|
function insertAt(index, y, xs) {
|
|
1233
1300
|
let isDone = false;
|
|
1234
1301
|
if (index < 0) {
|
|
1235
|
-
throw
|
|
1302
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1236
1303
|
}
|
|
1237
1304
|
return generateIndexed(() => ofSeq(xs), (i, e) => {
|
|
1238
1305
|
if ((isDone ? true : i < index) && e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
@@ -1242,7 +1309,7 @@ function insertAt(index, y, xs) {
|
|
|
1242
1309
|
return some(y);
|
|
1243
1310
|
} else {
|
|
1244
1311
|
if (!isDone) {
|
|
1245
|
-
throw
|
|
1312
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1246
1313
|
}
|
|
1247
1314
|
return void 0;
|
|
1248
1315
|
}
|
|
@@ -1253,7 +1320,7 @@ function insertAt(index, y, xs) {
|
|
|
1253
1320
|
function insertManyAt(index, ys, xs) {
|
|
1254
1321
|
let status = -1;
|
|
1255
1322
|
if (index < 0) {
|
|
1256
|
-
throw
|
|
1323
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1257
1324
|
}
|
|
1258
1325
|
return generateIndexed(() => [ofSeq(xs), ofSeq(ys)], (i, tupledArg) => {
|
|
1259
1326
|
const e1 = tupledArg[0];
|
|
@@ -1277,7 +1344,7 @@ function insertManyAt(index, ys, xs) {
|
|
|
1277
1344
|
return some(e1["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
1278
1345
|
} else {
|
|
1279
1346
|
if (status < 1) {
|
|
1280
|
-
throw
|
|
1347
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1281
1348
|
}
|
|
1282
1349
|
return void 0;
|
|
1283
1350
|
}
|
|
@@ -1292,7 +1359,7 @@ function insertManyAt(index, ys, xs) {
|
|
|
1292
1359
|
function removeAt(index, xs) {
|
|
1293
1360
|
let isDone = false;
|
|
1294
1361
|
if (index < 0) {
|
|
1295
|
-
throw
|
|
1362
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1296
1363
|
}
|
|
1297
1364
|
return generateIndexed(() => ofSeq(xs), (i, e) => {
|
|
1298
1365
|
if ((isDone ? true : i < index) && e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
@@ -1302,7 +1369,7 @@ function removeAt(index, xs) {
|
|
|
1302
1369
|
return e["System.Collections.IEnumerator.MoveNext"]() ? some(e["System.Collections.Generic.IEnumerator`1.get_Current"]()) : void 0;
|
|
1303
1370
|
} else {
|
|
1304
1371
|
if (!isDone) {
|
|
1305
|
-
throw
|
|
1372
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1306
1373
|
}
|
|
1307
1374
|
return void 0;
|
|
1308
1375
|
}
|
|
@@ -1312,33 +1379,30 @@ function removeAt(index, xs) {
|
|
|
1312
1379
|
}
|
|
1313
1380
|
function removeManyAt(index, count, xs) {
|
|
1314
1381
|
if (index < 0) {
|
|
1315
|
-
throw
|
|
1382
|
+
throw Operators_InvalidArg("index", "index must be within bounds of the array");
|
|
1316
1383
|
}
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1384
|
+
const endIndex = index + count | 0;
|
|
1385
|
+
return delay(() => {
|
|
1386
|
+
let i = -1;
|
|
1387
|
+
return append(filter((_arg) => {
|
|
1388
|
+
i = i + 1 | 0;
|
|
1389
|
+
if (i < index) {
|
|
1390
|
+
return true;
|
|
1321
1391
|
} else {
|
|
1322
|
-
|
|
1392
|
+
return i >= endIndex;
|
|
1323
1393
|
}
|
|
1324
|
-
}
|
|
1325
|
-
if (i
|
|
1326
|
-
|
|
1327
|
-
if (!e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1328
|
-
throw new Exception(SR_indexOutOfBounds + " (Parameter 'count')");
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1394
|
+
}, xs), delay(() => {
|
|
1395
|
+
if (i < index) {
|
|
1396
|
+
throw Operators_InvalidArg("index", "index must be within bounds of the array");
|
|
1331
1397
|
}
|
|
1332
|
-
return
|
|
1333
|
-
}
|
|
1334
|
-
}, (e_1) => {
|
|
1335
|
-
disposeSafe(e_1);
|
|
1398
|
+
return empty();
|
|
1399
|
+
}));
|
|
1336
1400
|
});
|
|
1337
1401
|
}
|
|
1338
1402
|
function updateAt(index, y, xs) {
|
|
1339
1403
|
let isDone = false;
|
|
1340
1404
|
if (index < 0) {
|
|
1341
|
-
throw
|
|
1405
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1342
1406
|
}
|
|
1343
1407
|
return generateIndexed(() => ofSeq(xs), (i, e) => {
|
|
1344
1408
|
if ((isDone ? true : i < index) && e["System.Collections.IEnumerator.MoveNext"]()) {
|
|
@@ -1348,7 +1412,7 @@ function updateAt(index, y, xs) {
|
|
|
1348
1412
|
return some(y);
|
|
1349
1413
|
} else {
|
|
1350
1414
|
if (!isDone) {
|
|
1351
|
-
throw
|
|
1415
|
+
throw Operators_InvalidArg("index", SR_indexOutOfBounds);
|
|
1352
1416
|
}
|
|
1353
1417
|
return void 0;
|
|
1354
1418
|
}
|
|
@@ -1395,4 +1459,4 @@ function randomSample(count, xs) {
|
|
|
1395
1459
|
return randomSampleWith(nonSeeded(), count, xs);
|
|
1396
1460
|
}
|
|
1397
1461
|
|
|
1398
|
-
export { CachedSeq$1, CachedSeq$1_$ctor_Z7A8347D4, CachedSeq$1_$reflection, CachedSeq$1__Clear, Enumerator_FromFunctions$1, Enumerator_FromFunctions$1_$ctor_58C54629, Enumerator_FromFunctions$1_$reflection, Enumerator_Seq, Enumerator_Seq_$ctor_673A07F2, Enumerator_Seq_$reflection, Enumerator_alreadyFinished, Enumerator_cast, Enumerator_concat, Enumerator_enumerateThenFinally, Enumerator_generateWhileSome, Enumerator_noReset, Enumerator_notStarted, Enumerator_unfold, SR_enumerationAlreadyFinished, SR_enumerationNotStarted, SR_inputSequenceEmpty, SR_inputSequenceTooLong, SR_keyNotFoundAlt, SR_notEnoughElements, SR_resetNotSupported, allPairs, append, average, averageBy, cache, cast, choose, chunkBySize, collect, compareWith, concat, contains, delay, empty, enumerateFromFunctions, enumerateThenFinally, enumerateTryWith, enumerateUsing, enumerateWhile, exactlyOne, exists, exists2, filter, find, findBack, findIndex, findIndexBack, fold, fold2, foldBack, foldBack2, forAll, forAll2, generate, generateIndexed, head, indexNotFound, indexed, initialize, initializeInfinite, insertAt, insertManyAt, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, length, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, max, maxBy, min, minBy, mkSeq, ofArray, ofList, ofSeq, pairwise, permute, pick, randomChoice, randomChoiceBy, randomChoiceWith, randomChoices, randomChoicesBy, randomChoicesWith, randomSample, randomSampleBy, randomSampleWith, randomShuffle, randomShuffleBy, randomShuffleWith, readOnly, reduce, reduceBack, removeAt, removeManyAt, replicate, reverse, scan, scanBack, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortWith, splitInto, sum, sumBy, tail, take, takeWhile, toArray, toList, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, updateAt, where, windowed, zip, zip3 };
|
|
1462
|
+
export { CachedSeq$1, CachedSeq$1_$ctor_Z7A8347D4, CachedSeq$1_$reflection, CachedSeq$1__Clear, Enumerator_FromFunctions$1, Enumerator_FromFunctions$1_$ctor_58C54629, Enumerator_FromFunctions$1_$reflection, Enumerator_Seq, Enumerator_Seq_$ctor_673A07F2, Enumerator_Seq_$reflection, Enumerator_alreadyFinished, Enumerator_cast, Enumerator_concat, Enumerator_enumerateThenFinally, Enumerator_generateWhileSome, Enumerator_noReset, Enumerator_notStarted, Enumerator_unfold, SR_enumerationAlreadyFinished, SR_enumerationNotStarted, SR_inputMustBePositive, SR_inputSequenceEmpty, SR_inputSequenceTooLong, SR_keyNotFoundAlt, SR_notEnoughElements, SR_resetNotSupported, allPairs, append, average, averageBy, cache, cast, choose, chunkBySize, collect, compareWith, concat, contains, delay, empty, enumerateFromFunctions, enumerateThenFinally, enumerateTryWith, enumerateUsing, enumerateWhile, exactlyOne, exists, exists2, filter, find, findBack, findIndex, findIndexBack, fold, fold2, foldBack, foldBack2, forAll, forAll2, generate, generateIndexed, head, indexNotFound, indexed, initialize, initializeInfinite, insertAt, insertManyAt, isEmpty, item, iterate, iterate2, iterateIndexed, iterateIndexed2, last, length, map, map2, map3, mapFold, mapFoldBack, mapIndexed, mapIndexed2, max, maxBy, min, minBy, mkSeq, ofArray, ofList, ofSeq, pairwise, permute, pick, randomChoice, randomChoiceBy, randomChoiceWith, randomChoices, randomChoicesBy, randomChoicesWith, randomSample, randomSampleBy, randomSampleWith, randomShuffle, randomShuffleBy, randomShuffleWith, readOnly, reduce, reduceBack, removeAt, removeManyAt, replicate, reverse, scan, scanBack, singleton, skip, skipWhile, sort, sortBy, sortByDescending, sortDescending, sortWith, splitInto, sum, sumBy, tail, take, takeWhile, toArray, toList, transpose, truncate, tryExactlyOne, tryFind, tryFindBack, tryFindIndex, tryFindIndexBack, tryHead, tryItem, tryLast, tryPick, unfold, updateAt, where, windowed, zip, zip3 };
|
|
@@ -32,10 +32,8 @@ function countBy(projection, xs, comparer) {
|
|
|
32
32
|
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
33
33
|
const key = projection(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
34
34
|
let matchValue;
|
|
35
|
-
|
|
36
|
-
matchValue = [tryGetValue(dict, key,
|
|
37
|
-
outArg = v | 0;
|
|
38
|
-
})), outArg];
|
|
35
|
+
const cell = new FSharpRef(0);
|
|
36
|
+
matchValue = [tryGetValue(dict, key, cell), cell.contents];
|
|
39
37
|
if (matchValue[0]) {
|
|
40
38
|
dict.set(key, matchValue[1] + 1);
|
|
41
39
|
} else {
|
|
@@ -59,10 +57,8 @@ function groupBy(projection, xs, comparer) {
|
|
|
59
57
|
const x = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
60
58
|
const key = projection(x);
|
|
61
59
|
let matchValue;
|
|
62
|
-
|
|
63
|
-
matchValue = [tryGetValue(dict, key,
|
|
64
|
-
outArg = v;
|
|
65
|
-
})), outArg];
|
|
60
|
+
const cell = new FSharpRef(defaultOf());
|
|
61
|
+
matchValue = [tryGetValue(dict, key, cell), cell.contents];
|
|
66
62
|
if (matchValue[0]) {
|
|
67
63
|
void matchValue[1].push(x);
|
|
68
64
|
} else {
|