@glutinum/cli 0.12.0 → 0.14.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.
Files changed (273) hide show
  1. package/README.md +35 -3
  2. package/dist/Glutinum.Converter/Abbreviations.js +246 -0
  3. package/dist/Glutinum.Converter/FsharpAST.js +98 -34
  4. package/dist/Glutinum.Converter/Generate.js +55 -8
  5. package/dist/Glutinum.Converter/GlueAST.js +446 -30
  6. package/dist/Glutinum.Converter/Log.js +7 -8
  7. package/dist/Glutinum.Converter/Merge.js +683 -31
  8. package/dist/Glutinum.Converter/Packages.js +308 -0
  9. package/dist/Glutinum.Converter/Printer.js +332 -170
  10. package/dist/Glutinum.Converter/Read.js +279 -6
  11. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js +13 -7
  12. package/dist/Glutinum.Converter/Reader/Declaration.js +102 -17
  13. package/dist/Glutinum.Converter/Reader/Documentation.js +168 -73
  14. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js +7 -51
  15. package/dist/Glutinum.Converter/Reader/ExportAssignment.js +64 -15
  16. package/dist/Glutinum.Converter/Reader/ExportDeclaration.js +165 -0
  17. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js +30 -5
  18. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js +122 -4
  19. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js +83 -7
  20. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js +8 -8
  21. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js +11 -8
  22. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js +3 -2
  23. package/dist/Glutinum.Converter/Reader/Node.js +24 -10
  24. package/dist/Glutinum.Converter/Reader/Parameters.js +110 -7
  25. package/dist/Glutinum.Converter/Reader/Report.js +31 -12
  26. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js +4 -3
  27. package/dist/Glutinum.Converter/Reader/TypeNode.js +1527 -248
  28. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js +75 -20
  29. package/dist/Glutinum.Converter/Reader/TypeParameters.js +8 -5
  30. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js +184 -50
  31. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js +32 -13
  32. package/dist/Glutinum.Converter/Reader/Types.js +180 -0
  33. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js +99 -43
  34. package/dist/Glutinum.Converter/Reader/Utils.js +1143 -55
  35. package/dist/Glutinum.Converter/Reader/VariableStatement.js +59 -14
  36. package/dist/Glutinum.Converter/Transform.js +8710 -1137
  37. package/dist/Glutinum.Converter/TypeScript.Extensions.js +3 -3
  38. package/dist/Glutinum.Converter/TypeScript.js +3 -3
  39. package/dist/Glutinum.Converter/Utils/Keywords.js +6 -6
  40. package/dist/Glutinum.Converter/Utils/List.js +3 -3
  41. package/dist/Glutinum.Converter/Utils/Naming.js +76 -14
  42. package/dist/Glutinum.Converter/Utils/String.js +7 -3
  43. package/dist/Program.js +230 -72
  44. package/package.json +4 -4
  45. package/src/Glutinum.Converter/js/bootstrap.js +109 -2
  46. package/src/Glutinum.Converter/js/host.js +144 -0
  47. package/src/Glutinum.Converter/js/npm.js +137 -0
  48. package/src/Glutinum.Converter/js/resolve.js +402 -0
  49. package/dist/Glutinum.Converter/FsharpAST.js.map +0 -1
  50. package/dist/Glutinum.Converter/Generate.js.map +0 -1
  51. package/dist/Glutinum.Converter/GlueAST.js.map +0 -1
  52. package/dist/Glutinum.Converter/Log.js.map +0 -1
  53. package/dist/Glutinum.Converter/Merge.js.map +0 -1
  54. package/dist/Glutinum.Converter/Printer.js.map +0 -1
  55. package/dist/Glutinum.Converter/Read.js.map +0 -1
  56. package/dist/Glutinum.Converter/Reader/ClassDeclaration.js.map +0 -1
  57. package/dist/Glutinum.Converter/Reader/Declaration.js.map +0 -1
  58. package/dist/Glutinum.Converter/Reader/Documentation.js.map +0 -1
  59. package/dist/Glutinum.Converter/Reader/EnumDeclaration.js.map +0 -1
  60. package/dist/Glutinum.Converter/Reader/ExportAssignment.js.map +0 -1
  61. package/dist/Glutinum.Converter/Reader/FunctionDeclaration.js.map +0 -1
  62. package/dist/Glutinum.Converter/Reader/IndexedAccessType.js.map +0 -1
  63. package/dist/Glutinum.Converter/Reader/InterfaceDeclaration.js.map +0 -1
  64. package/dist/Glutinum.Converter/Reader/MappedTypeNode.js.map +0 -1
  65. package/dist/Glutinum.Converter/Reader/ModuleDeclaration.js.map +0 -1
  66. package/dist/Glutinum.Converter/Reader/NamedTupleMember.js.map +0 -1
  67. package/dist/Glutinum.Converter/Reader/Node.js.map +0 -1
  68. package/dist/Glutinum.Converter/Reader/Parameters.js.map +0 -1
  69. package/dist/Glutinum.Converter/Reader/Report.js.map +0 -1
  70. package/dist/Glutinum.Converter/Reader/TypeAliasDeclaration.js.map +0 -1
  71. package/dist/Glutinum.Converter/Reader/TypeNode.js.map +0 -1
  72. package/dist/Glutinum.Converter/Reader/TypeOperatorNode.js.map +0 -1
  73. package/dist/Glutinum.Converter/Reader/TypeParameters.js.map +0 -1
  74. package/dist/Glutinum.Converter/Reader/TypeQueryNode.js.map +0 -1
  75. package/dist/Glutinum.Converter/Reader/TypeScriptReader.js.map +0 -1
  76. package/dist/Glutinum.Converter/Reader/UnionTypeNode.js.map +0 -1
  77. package/dist/Glutinum.Converter/Reader/Utils.js.map +0 -1
  78. package/dist/Glutinum.Converter/Reader/VariableStatement.js.map +0 -1
  79. package/dist/Glutinum.Converter/Transform.js.map +0 -1
  80. package/dist/Glutinum.Converter/TypeScript.Extensions.js.map +0 -1
  81. package/dist/Glutinum.Converter/TypeScript.js.map +0 -1
  82. package/dist/Glutinum.Converter/Utils/Keywords.js.map +0 -1
  83. package/dist/Glutinum.Converter/Utils/List.js.map +0 -1
  84. package/dist/Glutinum.Converter/Utils/Naming.js.map +0 -1
  85. package/dist/Glutinum.Converter/Utils/String.js.map +0 -1
  86. package/dist/Program.js.map +0 -1
  87. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
  88. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -105
  89. package/dist/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js.map +0 -1
  90. package/dist/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +0 -20
  91. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
  92. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -218
  93. package/dist/fable_modules/Fable.Promise.3.2.0/Promise.fs.js.map +0 -1
  94. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
  95. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -20
  96. package/dist/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js.map +0 -1
  97. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AssemblyInfo.fs +0 -19
  98. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs +0 -207
  99. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js +0 -127
  100. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Async.fs.js.map +0 -1
  101. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOption.fs +0 -81
  102. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs +0 -183
  103. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js +0 -37
  104. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionCE.fs.js.map +0 -1
  105. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncOptionOp.fs +0 -24
  106. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResult.fs +0 -439
  107. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs +0 -217
  108. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js +0 -18
  109. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultCE.fs.js.map +0 -1
  110. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOp.fs +0 -24
  111. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs +0 -75
  112. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js +0 -26
  113. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOption.fs.js.map +0 -1
  114. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs +0 -238
  115. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js +0 -18
  116. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionCE.fs.js.map +0 -1
  117. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncResultOptionOp.fs +0 -24
  118. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidation.fs +0 -190
  119. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs +0 -194
  120. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js +0 -18
  121. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationCE.fs.js.map +0 -1
  122. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/AsyncValidationOp.fs +0 -35
  123. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/FsToolkit.ErrorHandling.fableproj +0 -51
  124. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs +0 -218
  125. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js +0 -358
  126. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/List.fs.js.map +0 -1
  127. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Option.fs +0 -331
  128. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs +0 -186
  129. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js +0 -18
  130. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionCE.fs.js.map +0 -1
  131. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/OptionOp.fs +0 -21
  132. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs +0 -644
  133. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js +0 -45
  134. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Result.fs.js.map +0 -1
  135. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs +0 -155
  136. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js +0 -23
  137. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultCE.fs.js.map +0 -1
  138. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOp.fs +0 -45
  139. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs +0 -201
  140. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js +0 -65
  141. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOption.fs.js.map +0 -1
  142. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs +0 -146
  143. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js +0 -18
  144. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionCE.fs.js.map +0 -1
  145. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ResultOptionOp.fs +0 -57
  146. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs +0 -19
  147. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js +0 -31
  148. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Seq.fs.js.map +0 -1
  149. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs +0 -22
  150. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js +0 -18
  151. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Shims.fs.js.map +0 -1
  152. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/Validation.fs +0 -172
  153. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs +0 -148
  154. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js +0 -18
  155. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationCE.fs.js.map +0 -1
  156. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValidationOp.fs +0 -35
  157. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOption.fs +0 -151
  158. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/ValueOptionCE.fs +0 -165
  159. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
  160. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Debug/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  161. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -3
  162. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.0/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  163. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/.NETStandard,Version=v2.1.AssemblyAttributes.fs +0 -3
  164. package/dist/fable_modules/FsToolkit.ErrorHandling.4.16.0/obj/Release/netstandard2.1/FsToolkit.ErrorHandling.AssemblyInfo.fs +0 -20
  165. package/dist/fable_modules/fable-library-js.4.14.0/Array.d.ts +0 -123
  166. package/dist/fable_modules/fable-library-js.4.14.0/Array.js +0 -1242
  167. package/dist/fable_modules/fable-library-js.4.14.0/Async.d.ts +0 -32
  168. package/dist/fable_modules/fable-library-js.4.14.0/Async.js +0 -158
  169. package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.d.ts +0 -59
  170. package/dist/fable_modules/fable-library-js.4.14.0/AsyncBuilder.js +0 -183
  171. package/dist/fable_modules/fable-library-js.4.14.0/BigInt.d.ts +0 -115
  172. package/dist/fable_modules/fable-library-js.4.14.0/BigInt.js +0 -282
  173. package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.d.ts +0 -27
  174. package/dist/fable_modules/fable-library-js.4.14.0/BitConverter.js +0 -138
  175. package/dist/fable_modules/fable-library-js.4.14.0/Boolean.d.ts +0 -3
  176. package/dist/fable_modules/fable-library-js.4.14.0/Boolean.js +0 -21
  177. package/dist/fable_modules/fable-library-js.4.14.0/CHANGELOG.md +0 -37
  178. package/dist/fable_modules/fable-library-js.4.14.0/Char.d.ts +0 -65
  179. package/dist/fable_modules/fable-library-js.4.14.0/Char.js +0 -169
  180. package/dist/fable_modules/fable-library-js.4.14.0/Choice.d.ts +0 -121
  181. package/dist/fable_modules/fable-library-js.4.14.0/Choice.js +0 -184
  182. package/dist/fable_modules/fable-library-js.4.14.0/Date.d.ts +0 -70
  183. package/dist/fable_modules/fable-library-js.4.14.0/Date.js +0 -749
  184. package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.d.ts +0 -63
  185. package/dist/fable_modules/fable-library-js.4.14.0/DateOffset.js +0 -268
  186. package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.d.ts +0 -18
  187. package/dist/fable_modules/fable-library-js.4.14.0/DateOnly.js +0 -124
  188. package/dist/fable_modules/fable-library-js.4.14.0/Decimal.d.ts +0 -45
  189. package/dist/fable_modules/fable-library-js.4.14.0/Decimal.js +0 -212
  190. package/dist/fable_modules/fable-library-js.4.14.0/Double.d.ts +0 -11
  191. package/dist/fable_modules/fable-library-js.4.14.0/Double.js +0 -46
  192. package/dist/fable_modules/fable-library-js.4.14.0/Encoding.d.ts +0 -12
  193. package/dist/fable_modules/fable-library-js.4.14.0/Encoding.js +0 -173
  194. package/dist/fable_modules/fable-library-js.4.14.0/Event.d.ts +0 -31
  195. package/dist/fable_modules/fable-library-js.4.14.0/Event.js +0 -93
  196. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.d.ts +0 -7
  197. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Collections.js +0 -27
  198. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.d.ts +0 -12
  199. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.CompilerServices.js +0 -27
  200. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.d.ts +0 -17
  201. package/dist/fable_modules/fable-library-js.4.14.0/FSharp.Core.js +0 -69
  202. package/dist/fable_modules/fable-library-js.4.14.0/Global.d.ts +0 -24
  203. package/dist/fable_modules/fable-library-js.4.14.0/Global.js +0 -8
  204. package/dist/fable_modules/fable-library-js.4.14.0/Guid.d.ts +0 -10
  205. package/dist/fable_modules/fable-library-js.4.14.0/Guid.js +0 -142
  206. package/dist/fable_modules/fable-library-js.4.14.0/Int32.d.ts +0 -28
  207. package/dist/fable_modules/fable-library-js.4.14.0/Int32.js +0 -135
  208. package/dist/fable_modules/fable-library-js.4.14.0/List.d.ts +0 -143
  209. package/dist/fable_modules/fable-library-js.4.14.0/List.js +0 -1273
  210. package/dist/fable_modules/fable-library-js.4.14.0/Long.d.ts +0 -3
  211. package/dist/fable_modules/fable-library-js.4.14.0/Long.js +0 -46
  212. package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.d.ts +0 -25
  213. package/dist/fable_modules/fable-library-js.4.14.0/MailboxProcessor.js +0 -93
  214. package/dist/fable_modules/fable-library-js.4.14.0/Map.d.ts +0 -178
  215. package/dist/fable_modules/fable-library-js.4.14.0/Map.js +0 -1396
  216. package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.d.ts +0 -10
  217. package/dist/fable_modules/fable-library-js.4.14.0/MapUtil.js +0 -112
  218. package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.d.ts +0 -52
  219. package/dist/fable_modules/fable-library-js.4.14.0/MutableMap.js +0 -327
  220. package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.d.ts +0 -39
  221. package/dist/fable_modules/fable-library-js.4.14.0/MutableSet.js +0 -233
  222. package/dist/fable_modules/fable-library-js.4.14.0/Native.d.ts +0 -2
  223. package/dist/fable_modules/fable-library-js.4.14.0/Native.js +0 -8
  224. package/dist/fable_modules/fable-library-js.4.14.0/Numeric.d.ts +0 -19
  225. package/dist/fable_modules/fable-library-js.4.14.0/Numeric.js +0 -71
  226. package/dist/fable_modules/fable-library-js.4.14.0/Observable.d.ts +0 -32
  227. package/dist/fable_modules/fable-library-js.4.14.0/Observable.js +0 -113
  228. package/dist/fable_modules/fable-library-js.4.14.0/Option.d.ts +0 -28
  229. package/dist/fable_modules/fable-library-js.4.14.0/Option.js +0 -96
  230. package/dist/fable_modules/fable-library-js.4.14.0/README.md +0 -3
  231. package/dist/fable_modules/fable-library-js.4.14.0/Random.d.ts +0 -37
  232. package/dist/fable_modules/fable-library-js.4.14.0/Random.js +0 -170
  233. package/dist/fable_modules/fable-library-js.4.14.0/Range.d.ts +0 -12
  234. package/dist/fable_modules/fable-library-js.4.14.0/Range.js +0 -45
  235. package/dist/fable_modules/fable-library-js.4.14.0/Reflection.d.ts +0 -119
  236. package/dist/fable_modules/fable-library-js.4.14.0/Reflection.js +0 -461
  237. package/dist/fable_modules/fable-library-js.4.14.0/RegExp.d.ts +0 -10
  238. package/dist/fable_modules/fable-library-js.4.14.0/RegExp.js +0 -132
  239. package/dist/fable_modules/fable-library-js.4.14.0/Result.d.ts +0 -37
  240. package/dist/fable_modules/fable-library-js.4.14.0/Result.js +0 -165
  241. package/dist/fable_modules/fable-library-js.4.14.0/Seq.d.ts +0 -165
  242. package/dist/fable_modules/fable-library-js.4.14.0/Seq.js +0 -1379
  243. package/dist/fable_modules/fable-library-js.4.14.0/Seq2.d.ts +0 -18
  244. package/dist/fable_modules/fable-library-js.4.14.0/Seq2.js +0 -111
  245. package/dist/fable_modules/fable-library-js.4.14.0/Set.d.ts +0 -190
  246. package/dist/fable_modules/fable-library-js.4.14.0/Set.js +0 -1789
  247. package/dist/fable_modules/fable-library-js.4.14.0/String.d.ts +0 -50
  248. package/dist/fable_modules/fable-library-js.4.14.0/String.js +0 -543
  249. package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.d.ts +0 -79
  250. package/dist/fable_modules/fable-library-js.4.14.0/System.Collections.Generic.js +0 -317
  251. package/dist/fable_modules/fable-library-js.4.14.0/System.Text.d.ts +0 -38
  252. package/dist/fable_modules/fable-library-js.4.14.0/System.Text.js +0 -162
  253. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.d.ts +0 -5
  254. package/dist/fable_modules/fable-library-js.4.14.0/SystemException.js +0 -5
  255. package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.d.ts +0 -15
  256. package/dist/fable_modules/fable-library-js.4.14.0/TimeOnly.js +0 -122
  257. package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.d.ts +0 -34
  258. package/dist/fable_modules/fable-library-js.4.14.0/TimeSpan.js +0 -177
  259. package/dist/fable_modules/fable-library-js.4.14.0/Timer.d.ts +0 -19
  260. package/dist/fable_modules/fable-library-js.4.14.0/Timer.js +0 -67
  261. package/dist/fable_modules/fable-library-js.4.14.0/Types.d.ts +0 -58
  262. package/dist/fable_modules/fable-library-js.4.14.0/Types.js +0 -208
  263. package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.d.ts +0 -2
  264. package/dist/fable_modules/fable-library-js.4.14.0/Unicode.13.0.0.js +0 -4
  265. package/dist/fable_modules/fable-library-js.4.14.0/Uri.d.ts +0 -29
  266. package/dist/fable_modules/fable-library-js.4.14.0/Uri.js +0 -142
  267. package/dist/fable_modules/fable-library-js.4.14.0/Util.d.ts +0 -207
  268. package/dist/fable_modules/fable-library-js.4.14.0/Util.js +0 -770
  269. package/dist/fable_modules/fable-library-js.4.14.0/big.d.ts +0 -338
  270. package/dist/fable_modules/fable-library-js.4.14.0/lib/big.d.ts +0 -5
  271. package/dist/fable_modules/fable-library-js.4.14.0/lib/big.js +0 -826
  272. package/dist/fable_modules/fable-library-js.4.14.0/package.json +0 -24
  273. package/dist/fable_modules/project_cracked.json +0 -1
@@ -1,35 +0,0 @@
1
- namespace FsToolkit.ErrorHandling.Operator.Validation
2
-
3
- open FsToolkit.ErrorHandling
4
-
5
- [<AutoOpen>]
6
- module Validation =
7
- let inline (<!>)
8
- ([<InlineIfLambda>] mapper: 'okInput -> 'okOutput)
9
- (input: Validation<'okInput, 'error>)
10
- : Validation<'okOutput, 'error> =
11
- Result.map mapper input
12
-
13
- let inline (<!^>)
14
- ([<InlineIfLambda>] mapper: 'okInput -> 'okOutput)
15
- (input: Result<'okInput, 'error>)
16
- : Validation<'okOutput, 'error> =
17
- Result.map mapper (Validation.ofResult (input))
18
-
19
- let inline (<*>)
20
- (applier: Validation<('okInput -> 'okOutput), 'error>)
21
- (input: Validation<'okInput, 'error>)
22
- : Validation<'okOutput, 'error> =
23
- Validation.apply applier input
24
-
25
- let inline (<*^>)
26
- (applier: Validation<('okInput -> 'okOutput), 'error>)
27
- (input: Result<'okInput, 'error>)
28
- : Validation<'okOutput, 'error> =
29
- Validation.apply applier (Validation.ofResult input)
30
-
31
- let inline (>>=)
32
- (input: Validation<'okInput, 'error>)
33
- ([<InlineIfLambda>] binder: 'okInput -> Validation<'okOutput, 'error>)
34
- : Validation<'okOutput, 'error> =
35
- Validation.bind binder input
@@ -1,151 +0,0 @@
1
- namespace FsToolkit.ErrorHandling
2
-
3
- #if !FABLE_COMPILER
4
- [<RequireQualifiedAccess>]
5
- module ValueOption =
6
-
7
-
8
- let inline bind ([<InlineIfLambdaAttribute>] f) x =
9
- match x with
10
- | ValueSome v -> f v
11
- | ValueNone -> ValueNone
12
-
13
- let inline map ([<InlineIfLambdaAttribute>] f) x =
14
- match x with
15
- | ValueSome v -> ValueSome(f v)
16
- | ValueNone -> ValueNone
17
-
18
- let inline ofOption (opt: 'value option) : 'value voption =
19
- match opt with
20
- | Some v -> ValueSome v
21
- | None -> ValueNone
22
-
23
- let inline toOption (vopt: 'value voption) : 'value option =
24
- match vopt with
25
- | ValueSome v -> Some v
26
- | ValueNone -> None
27
-
28
- let inline traverseResult
29
- ([<InlineIfLambda>] binder: 'okInput -> Result<'okOutput, 'error>)
30
- (input: 'okInput voption)
31
- : Result<'okOutput voption, 'error> =
32
- match input with
33
- | ValueNone -> Ok ValueNone
34
- | ValueSome v ->
35
- binder v
36
- |> Result.map ValueSome
37
-
38
- let inline sequenceResult
39
- (opt: Result<'okOutput, 'error> voption)
40
- : Result<'okOutput voption, 'error> =
41
- traverseResult id opt
42
-
43
- let inline tryParse< ^value
44
- when ^value: (static member TryParse: string * byref< ^value > -> bool)>
45
- (valueToParse: string)
46
- : ^value voption =
47
- let mutable output = Unchecked.defaultof< ^value>
48
-
49
- let parsed =
50
- (^value: (static member TryParse: string * byref< ^value > -> bool) (valueToParse,
51
- &output))
52
-
53
- match parsed with
54
- | true -> ValueSome output
55
- | _ -> ValueNone
56
-
57
- let inline tryGetValue (key: 'key) (dictionary: ^Dictionary) : ^value voption =
58
- let mutable output = Unchecked.defaultof< ^value>
59
-
60
- let parsed =
61
- (^Dictionary: (member TryGetValue: 'key * byref< ^value > -> bool) (dictionary,
62
- key,
63
- &output))
64
-
65
- match parsed with
66
- | true -> ValueSome output
67
- | false -> ValueNone
68
-
69
- /// <summary>
70
- /// Takes two voptions and returns a tuple of the pair or none if either are none
71
- /// </summary>
72
- /// <param name="voption1">The input option</param>
73
- /// <param name="voption2">The input option</param>
74
- /// <returns></returns>
75
- let inline zip (left: 'left voption) (right: 'right voption) : ('left * 'right) voption =
76
- match left, right with
77
- | ValueSome v1, ValueSome v2 -> ValueSome(v1, v2)
78
- | _ -> ValueNone
79
-
80
-
81
- let inline ofResult (result: Result<'ok, 'error>) : 'ok voption =
82
- match result with
83
- | Ok v -> ValueSome v
84
- | Error _ -> ValueNone
85
-
86
-
87
- /// <summary>
88
- /// Convert a potentially null value to an ValueOption.
89
- ///
90
- /// This is different from <see cref="FSharp.Core.ValueOption.ofObj">ValueOption.ofObj</see> where it doesn't require the value to be constrained to null.
91
- /// This is beneficial where third party APIs may generate a record type using reflection and it can be null.
92
- /// See <a href="https://latkin.org/blog/2015/05/18/null-checking-considerations-in-f-its-harder-than-you-think/">Null-checking considerations in F#</a> for more details.
93
- /// </summary>
94
- /// <param name="value">The potentially null value</param>
95
- /// <returns>An ValueOption</returns>
96
- /// <seealso cref="FSharp.Core.ValueOption.ofObj"/>
97
- let inline ofNull (value: 'nullableValue) =
98
- if System.Object.ReferenceEquals(value, null) then
99
- ValueNone
100
- else
101
- ValueSome value
102
-
103
-
104
- /// <summary>
105
- ///
106
- /// <c>bindNull binder voption</c> evaluates to <c>match voption with ValueNone -> ValueNone | ValueSome x -> binder x |> ValueOption.ofNull</c>
107
- ///
108
- /// Automatically onverts the result of binder that is pontentially null into an Valueoption.
109
- /// </summary>
110
- /// <param name="binder">A function that takes the value of type 'value from an voption and transforms it into
111
- /// a value of type 'nullableValue.</param>
112
- /// <param name="voption">The input voption</param>
113
- /// <typeparam name="'value"></typeparam>
114
- /// <typeparam name="'nullableValue"></typeparam>
115
- /// <returns>A voption of the output type of the binder.</returns>
116
- /// <seealso cref="ofNull"/>
117
- let inline bindNull
118
- ([<InlineIfLambda>] binder: 'value -> 'nullableValue)
119
- (voption: ValueOption<'value>)
120
- : 'nullableValue voption =
121
- match voption with
122
- | ValueSome x ->
123
- binder x
124
- |> ofNull
125
- | ValueNone -> ValueNone
126
-
127
-
128
- /// <summary>
129
- /// Returns result of running <paramref name="onSome"/> if it is <c>ValueSome</c>, otherwise returns result of running <paramref name="onNone"/>
130
- /// </summary>
131
- /// <param name="onSome">The function to run if <paramref name="input"/> is <c>ValueSome</c></param>
132
- /// <param name="onNone">The function to run if <paramref name="input"/> is <c>ValueNone</c></param>
133
- /// <param name="input">The input option.</param>
134
- /// <returns>
135
- /// The result of running <paramref name="onSome"/> if the input is <c>ValueSome</c>, else returns result of running <paramref name="onNone"/>.
136
- /// </returns>
137
- let inline either
138
- ([<InlineIfLambda>] onSome: 'a -> 'output)
139
- ([<InlineIfLambda>] onNone: unit -> 'output)
140
- (input: 'a voption)
141
- : 'output =
142
- match input with
143
- | ValueSome x -> onSome x
144
- | ValueNone -> onNone ()
145
-
146
- let inline ofPair (input: bool * 'a) =
147
- match input with
148
- | true, x -> ValueSome x
149
- | false, _ -> ValueNone
150
-
151
- #endif
@@ -1,165 +0,0 @@
1
- namespace FsToolkit.ErrorHandling
2
-
3
-
4
- #if !FABLE_COMPILER
5
- [<AutoOpen>]
6
- module ValueOptionCE =
7
- open System
8
-
9
- type ValueOptionBuilder() =
10
- member inline _.Return(x: 'value) : 'value voption = ValueSome x
11
-
12
- member inline _.ReturnFrom(m: 'value voption) : 'value voption = m
13
-
14
- member inline _.Bind
15
- (
16
- input: 'input voption,
17
- [<InlineIfLambda>] binder: 'input -> 'output voption
18
- ) : 'output voption =
19
- ValueOption.bind binder input
20
-
21
- // Could not get it to work solely with Source. In loop cases it would potentially match the #seq overload and ask for type annotation
22
- member inline this.Bind
23
- (
24
- input: 'input when 'input: null,
25
- [<InlineIfLambda>] binder: 'input -> 'output voption
26
- ) : 'output voption =
27
- this.Bind(ValueOption.ofObj input, binder)
28
-
29
- member inline this.Zero() : unit voption = this.Return()
30
-
31
- member inline _.Combine
32
- (
33
- input: 'input voption,
34
- [<InlineIfLambda>] binder: 'input -> 'output voption
35
- ) : 'output voption =
36
- ValueOption.bind binder input
37
-
38
- member inline this.Combine(input: unit voption, output: 'output voption) : 'output voption =
39
- this.Bind(input, (fun () -> output))
40
-
41
- member inline _.Delay([<InlineIfLambda>] f: unit -> 'a) = f
42
-
43
- member inline _.Run([<InlineIfLambda>] f: unit -> 'v) = f ()
44
-
45
- member inline this.TryWith([<InlineIfLambda>] m, [<InlineIfLambda>] handler) =
46
- try
47
- this.Run m
48
- with e ->
49
- handler e
50
-
51
- member inline this.TryFinally([<InlineIfLambda>] m, [<InlineIfLambda>] compensation) =
52
- try
53
- this.Run m
54
- finally
55
- compensation ()
56
-
57
- member inline this.Using
58
- (
59
- resource: 'T :> IDisposable,
60
- [<InlineIfLambda>] binder
61
- ) : _ voption =
62
- this.TryFinally(
63
- (fun () -> binder resource),
64
- (fun () ->
65
- if not (obj.ReferenceEquals(resource, null)) then
66
- resource.Dispose()
67
- )
68
- )
69
-
70
- member inline this.While
71
- (
72
- [<InlineIfLambda>] guard: unit -> bool,
73
- [<InlineIfLambda>] generator: unit -> _ voption
74
- ) : _ voption =
75
-
76
- let mutable doContinue = true
77
- let mutable result = ValueSome()
78
-
79
- while doContinue
80
- && guard () do
81
- match generator () with
82
- | ValueSome() -> ()
83
- | ValueNone ->
84
- doContinue <- false
85
- result <- ValueNone
86
-
87
- result
88
-
89
- member inline this.For
90
- (
91
- sequence: #seq<'T>,
92
- [<InlineIfLambda>] binder: 'T -> _ voption
93
- ) : _ voption =
94
- this.Using(
95
- sequence.GetEnumerator(),
96
- fun enum -> this.While(enum.MoveNext, this.Delay(fun () -> binder enum.Current))
97
- )
98
-
99
- member inline _.BindReturn(x, [<InlineIfLambda>] f) = ValueOption.map f x
100
-
101
- member inline _.BindReturn(x, [<InlineIfLambda>] f) =
102
- x
103
- |> ValueOption.ofObj
104
- |> ValueOption.map f
105
-
106
- member inline _.MergeSources(option1, option2) = ValueOption.zip option1 option2
107
-
108
- /// <summary>
109
- /// Method lets us transform data types into our internal representation. This is the identity method to recognize the self type.
110
- ///
111
- /// See https://stackoverflow.com/questions/35286541/why-would-you-use-builder-source-in-a-custom-computation-expression-builder
112
- /// </summary>
113
- member inline _.Source(result: _ voption) : _ voption = result
114
-
115
-
116
- // /// <summary>
117
- // /// Method lets us transform data types into our internal representation.
118
- // /// </summary>
119
- member inline _.Source(vopt: _ option) : _ voption =
120
- vopt
121
- |> ValueOption.ofOption
122
-
123
- let voption = ValueOptionBuilder()
124
-
125
- [<AutoOpen>]
126
- module ValueOptionExtensionsLower =
127
- type ValueOptionBuilder with
128
-
129
- member inline _.Source(nullableObj: 'a when 'a: null) =
130
- nullableObj
131
- |> ValueOption.ofObj
132
-
133
- member inline _.Source(m: string) =
134
- m
135
- |> ValueOption.ofObj
136
-
137
- member inline _.MergeSources(nullableObj1, option2) =
138
- ValueOption.zip (ValueOption.ofObj nullableObj1) option2
139
-
140
-
141
- member inline _.MergeSources(option1, nullableObj2) =
142
- ValueOption.zip (option1) (ValueOption.ofObj nullableObj2)
143
-
144
-
145
- member inline _.MergeSources(nullableObj1, nullableObj2) =
146
- ValueOption.zip (ValueOption.ofObj nullableObj1) (ValueOption.ofObj nullableObj2)
147
-
148
- [<AutoOpen>]
149
- module ValueOptionExtensions =
150
- open System
151
-
152
- type ValueOptionBuilder with
153
-
154
- /// <summary>
155
- /// Needed to allow `for..in` and `for..do` functionality
156
- /// </summary>
157
- member inline _.Source(s: #seq<_>) = s
158
-
159
- // /// <summary>
160
- // /// Method lets us transform data types into our internal representation.
161
- // /// </summary>
162
- member inline _.Source(nullable: Nullable<'a>) : 'a voption =
163
- nullable
164
- |> ValueOption.ofNullable
165
- #endif
@@ -1,3 +0,0 @@
1
- namespace Microsoft.BuildSettings
2
- [<System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.1", FrameworkDisplayName=".NET Standard 2.1")>]
3
- do ()
@@ -1,20 +0,0 @@
1
- // <auto-generated>
2
- // Generated by the FSharp WriteCodeFragment class.
3
- // </auto-generated>
4
- namespace FSharp
5
-
6
- open System
7
- open System.Reflection
8
-
9
-
10
- [<assembly: System.Reflection.AssemblyCompanyAttribute("demystifyfp, TheAngryByrd")>]
11
- [<assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")>]
12
- [<assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © 2018-23")>]
13
- [<assembly: System.Reflection.AssemblyDescriptionAttribute("FsToolkit.ErrorHandling is an extensive utility library based around the F# Result type, enabling consistent and powerful error handling.")>]
14
- [<assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")>]
15
- [<assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")>]
16
- [<assembly: System.Reflection.AssemblyProductAttribute("FsToolkit.ErrorHandling")>]
17
- [<assembly: System.Reflection.AssemblyTitleAttribute("FsToolkit.ErrorHandling")>]
18
- [<assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")>]
19
- [<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "")>]
20
- do()
@@ -1,3 +0,0 @@
1
- namespace Microsoft.BuildSettings
2
- [<System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.0", FrameworkDisplayName=".NET Standard 2.0")>]
3
- do ()
@@ -1,20 +0,0 @@
1
- // <auto-generated>
2
- // Generated by the FSharp WriteCodeFragment class.
3
- // </auto-generated>
4
- namespace FSharp
5
-
6
- open System
7
- open System.Reflection
8
-
9
-
10
- [<assembly: System.Reflection.AssemblyCompanyAttribute("demystifyfp, TheAngryByrd")>]
11
- [<assembly: System.Reflection.AssemblyConfigurationAttribute("Release")>]
12
- [<assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © 2018-23")>]
13
- [<assembly: System.Reflection.AssemblyDescriptionAttribute("FsToolkit.ErrorHandling is an extensive utility library based around the F# Result type, enabling consistent and powerful error handling.")>]
14
- [<assembly: System.Reflection.AssemblyFileVersionAttribute("4.16.0.0")>]
15
- [<assembly: System.Reflection.AssemblyInformationalVersionAttribute("4.16.0+fab8e207658725148034926a7aa1578c93c168ae")>]
16
- [<assembly: System.Reflection.AssemblyProductAttribute("FsToolkit.ErrorHandling")>]
17
- [<assembly: System.Reflection.AssemblyTitleAttribute("FsToolkit.ErrorHandling")>]
18
- [<assembly: System.Reflection.AssemblyVersionAttribute("4.16.0.0")>]
19
- [<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/demystifyfp/FsToolkit.ErrorHandling.git")>]
20
- do()
@@ -1,3 +0,0 @@
1
- namespace Microsoft.BuildSettings
2
- [<System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.1", FrameworkDisplayName=".NET Standard 2.1")>]
3
- do ()
@@ -1,20 +0,0 @@
1
- // <auto-generated>
2
- // Generated by the FSharp WriteCodeFragment class.
3
- // </auto-generated>
4
- namespace FSharp
5
-
6
- open System
7
- open System.Reflection
8
-
9
-
10
- [<assembly: System.Reflection.AssemblyCompanyAttribute("demystifyfp, TheAngryByrd")>]
11
- [<assembly: System.Reflection.AssemblyConfigurationAttribute("Release")>]
12
- [<assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © 2018-23")>]
13
- [<assembly: System.Reflection.AssemblyDescriptionAttribute("FsToolkit.ErrorHandling is an extensive utility library based around the F# Result type, enabling consistent and powerful error handling.")>]
14
- [<assembly: System.Reflection.AssemblyFileVersionAttribute("4.16.0.0")>]
15
- [<assembly: System.Reflection.AssemblyInformationalVersionAttribute("4.16.0+fab8e207658725148034926a7aa1578c93c168ae")>]
16
- [<assembly: System.Reflection.AssemblyProductAttribute("FsToolkit.ErrorHandling")>]
17
- [<assembly: System.Reflection.AssemblyTitleAttribute("FsToolkit.ErrorHandling")>]
18
- [<assembly: System.Reflection.AssemblyVersionAttribute("4.16.0.0")>]
19
- [<assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/demystifyfp/FsToolkit.ErrorHandling.git")>]
20
- do()
@@ -1,123 +0,0 @@
1
- import { int32 } from "./Int32.js";
2
- import { Option } from "./Option.js";
3
- import { IComparer, IEqualityComparer } from "./Util.js";
4
- import { FSharpRef } from "./Types.js";
5
- export declare function append<T>(array1: T[], array2: T[], cons?: any): T[];
6
- export declare function filter<T>(predicate: ((arg0: T) => boolean), array: T[]): T[];
7
- export declare function fill<T>(target: T[], targetIndex: int32, count: int32, value: T): T[];
8
- export declare function getSubArray<T>(array: T[], start: int32, count: int32): T[];
9
- export declare function last<T>(array: T[]): T;
10
- export declare function tryLast<T>(array: T[]): Option<T>;
11
- export declare function mapIndexed<T, U>(f: ((arg0: int32, arg1: T) => U), source: T[], cons?: any): U[];
12
- export declare function map<T, U>(f: ((arg0: T) => U), source: T[], cons?: any): U[];
13
- export declare function mapIndexed2<T1, T2, U>(f: ((arg0: int32, arg1: T1, arg2: T2) => U), source1: T1[], source2: T2[], cons?: any): U[];
14
- export declare function map2<T1, T2, U>(f: ((arg0: T1, arg1: T2) => U), source1: T1[], source2: T2[], cons?: any): U[];
15
- export declare function mapIndexed3<T1, T2, T3, U>(f: ((arg0: int32, arg1: T1, arg2: T2, arg3: T3) => U), source1: T1[], source2: T2[], source3: T3[], cons?: any): U[];
16
- export declare function map3<T1, T2, T3, U>(f: ((arg0: T1, arg1: T2, arg2: T3) => U), source1: T1[], source2: T2[], source3: T3[], cons?: any): U[];
17
- export declare function mapFold<T, State, Result>(mapping: ((arg0: State, arg1: T) => [Result, State]), state: State, array: T[], cons?: any): [Result[], State];
18
- export declare function mapFoldBack<T, State, Result>(mapping: ((arg0: T, arg1: State) => [Result, State]), array: T[], state: State, cons?: any): [Result[], State];
19
- export declare function indexed<T>(source: T[]): [int32, T][];
20
- export declare function truncate<T>(count: int32, array: T[]): T[];
21
- export declare function concat<T>(arrays: Iterable<T[]>, cons?: any): T[];
22
- export declare function collect<T, U>(mapping: ((arg0: T) => U[]), array: T[], cons?: any): U[];
23
- export declare function where<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): $a[];
24
- export declare function indexOf<T>(array: T[], item_1: T, start: Option<int32>, count: Option<int32>, eq: IEqualityComparer<T>): int32;
25
- export declare function contains<T>(value: T, array: T[], eq: IEqualityComparer<T>): boolean;
26
- export declare function empty<$a>(cons: any): $a[];
27
- export declare function singleton<T>(value: T, cons?: any): T[];
28
- export declare function initialize<T>(count: int32, initializer: ((arg0: int32) => T), cons?: any): T[];
29
- export declare function pairwise<T>(array: T[]): [T, T][];
30
- export declare function replicate<T>(count: int32, initial: T, cons?: any): T[];
31
- export declare function copy<T>(array: T[]): T[];
32
- export declare function copyTo<T>(source: T[], sourceIndex: int32, target: T[], targetIndex: int32, count: int32): void;
33
- export declare function reverse<T>(array: T[]): T[];
34
- export declare function scan<T, State>(folder: ((arg0: State, arg1: T) => State), state: State, array: T[], cons?: any): State[];
35
- export declare function scanBack<T, State>(folder: ((arg0: T, arg1: State) => State), array: T[], state: State, cons?: any): State[];
36
- export declare function skip<T>(count: int32, array: T[], cons?: any): T[];
37
- export declare function skipWhile<T>(predicate: ((arg0: T) => boolean), array: T[], cons?: any): T[];
38
- export declare function take<T>(count: int32, array: T[], cons?: any): T[];
39
- export declare function takeWhile<T>(predicate: ((arg0: T) => boolean), array: T[], cons?: any): T[];
40
- export declare function addInPlace<T>(x: T, array: T[]): void;
41
- export declare function addRangeInPlace<T>(range: Iterable<T>, array: T[]): void;
42
- export declare function insertRangeInPlace<T>(index: int32, range: Iterable<T>, array: T[]): void;
43
- export declare function removeInPlace<T>(item_1: T, array: T[], eq: IEqualityComparer<T>): boolean;
44
- export declare function removeAllInPlace<T>(predicate: ((arg0: T) => boolean), array: T[]): int32;
45
- export declare function partition<T>(f: ((arg0: T) => boolean), source: T[], cons?: any): [T[], T[]];
46
- export declare function find<T>(predicate: ((arg0: T) => boolean), array: T[]): T;
47
- export declare function tryFind<T>(predicate: ((arg0: T) => boolean), array: T[]): Option<T>;
48
- export declare function findIndex<T>(predicate: ((arg0: T) => boolean), array: T[]): int32;
49
- export declare function tryFindIndex<T>(predicate: ((arg0: T) => boolean), array: T[]): Option<int32>;
50
- export declare function pick<$a, $b>(chooser: ((arg0: $a) => Option<$b>), array: $a[]): $b;
51
- export declare function tryPick<$a, $b>(chooser: ((arg0: $a) => Option<$b>), array: $a[]): Option<$b>;
52
- export declare function findBack<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): $a;
53
- export declare function tryFindBack<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): Option<$a>;
54
- export declare function findLastIndex<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): int32;
55
- export declare function findIndexBack<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): int32;
56
- export declare function tryFindIndexBack<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): Option<int32>;
57
- export declare function choose<T, U>(chooser: ((arg0: T) => Option<U>), array: T[], cons?: any): U[];
58
- export declare function foldIndexed<T, State>(folder: ((arg0: int32, arg1: State, arg2: T) => State), state: State, array: T[]): State;
59
- export declare function fold<T, State>(folder: ((arg0: State, arg1: T) => State), state: State, array: T[]): State;
60
- export declare function iterate<T>(action: ((arg0: T) => void), array: T[]): void;
61
- export declare function iterateIndexed<T>(action: ((arg0: int32, arg1: T) => void), array: T[]): void;
62
- export declare function iterate2<T1, T2>(action: ((arg0: T1, arg1: T2) => void), array1: T1[], array2: T2[]): void;
63
- export declare function iterateIndexed2<T1, T2>(action: ((arg0: int32, arg1: T1, arg2: T2) => void), array1: T1[], array2: T2[]): void;
64
- export declare function isEmpty<T>(array: T[]): boolean;
65
- export declare function forAll<T>(predicate: ((arg0: T) => boolean), array: T[]): boolean;
66
- export declare function permute<T>(f: ((arg0: int32) => int32), array: T[]): T[];
67
- export declare function setSlice<T>(target: T[], lower: Option<int32>, upper: Option<int32>, source: T[]): void;
68
- export declare function sortInPlaceBy<a, b>(projection: ((arg0: a) => b), xs: a[], comparer: IComparer<b>): void;
69
- export declare function sortInPlace<T>(xs: T[], comparer: IComparer<T>): void;
70
- export declare function sort<T>(xs: T[], comparer: IComparer<T>): T[];
71
- export declare function sortBy<a, b>(projection: ((arg0: a) => b), xs: a[], comparer: IComparer<b>): a[];
72
- export declare function sortDescending<T>(xs: T[], comparer: IComparer<T>): T[];
73
- export declare function sortByDescending<a, b>(projection: ((arg0: a) => b), xs: a[], comparer: IComparer<b>): a[];
74
- export declare function sortWith<T>(comparer: ((arg0: T, arg1: T) => int32), xs: T[]): T[];
75
- export declare function allPairs<T1, T2>(xs: T1[], ys: T2[]): [T1, T2][];
76
- export declare function unfold<T, State>(generator: ((arg0: State) => Option<[T, State]>), state: State): T[];
77
- export declare function unzip<$a, $b>(array: [$a, $b][]): [$a[], $b[]];
78
- export declare function unzip3<$a, $b, $c>(array: [$a, $b, $c][]): [$a[], $b[], $c[]];
79
- export declare function zip<T, U>(array1: T[], array2: U[]): [T, U][];
80
- export declare function zip3<T, U, V>(array1: T[], array2: U[], array3: V[]): [T, U, V][];
81
- export declare function chunkBySize<T>(chunkSize: int32, array: T[]): T[][];
82
- export declare function splitAt<T>(index: int32, array: T[]): [T[], T[]];
83
- export declare function compareWith<T>(comparer: ((arg0: T, arg1: T) => int32), source1: T[], source2: T[]): int32;
84
- export declare function compareTo<T>(comparer: ((arg0: T, arg1: T) => int32), source1: T[], source2: T[]): int32;
85
- export declare function equalsWith<T>(equals: ((arg0: T, arg1: T) => boolean), array1: T[], array2: T[]): boolean;
86
- export declare function exactlyOne<T>(array: T[]): T;
87
- export declare function tryExactlyOne<T>(array: T[]): Option<T>;
88
- export declare function head<T>(array: T[]): T;
89
- export declare function tryHead<T>(array: T[]): Option<T>;
90
- export declare function tail<T>(array: T[]): T[];
91
- export declare function item<T>(index: int32, array: T[]): T;
92
- export declare function setItem<T>(array: T[], index: int32, value: T): void;
93
- export declare function tryItem<T>(index: int32, array: T[]): Option<T>;
94
- export declare function foldBackIndexed<T, State>(folder: ((arg0: int32, arg1: T, arg2: State) => State), array: T[], state: State): State;
95
- export declare function foldBack<T, State>(folder: ((arg0: T, arg1: State) => State), array: T[], state: State): State;
96
- export declare function foldIndexed2<$a, $b, $c>(folder: ((arg0: int32, arg1: $a, arg2: $b, arg3: $c) => $a), state: $a, array1: $b[], array2: $c[]): $a;
97
- export declare function fold2<T1, T2, State>(folder: ((arg0: State, arg1: T1, arg2: T2) => State), state: State, array1: T1[], array2: T2[]): State;
98
- export declare function foldBackIndexed2<T1, T2, State>(folder: ((arg0: int32, arg1: T1, arg2: T2, arg3: State) => State), array1: T1[], array2: T2[], state: State): State;
99
- export declare function foldBack2<T1, T2, State>(f: ((arg0: T1, arg1: T2, arg2: State) => State), array1: T1[], array2: T2[], state: State): State;
100
- export declare function reduce<T>(reduction: ((arg0: T, arg1: T) => T), array: T[]): T;
101
- export declare function reduceBack<T>(reduction: ((arg0: T, arg1: T) => T), array: T[]): T;
102
- export declare function forAll2<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), array1: $a[], array2: $b[]): boolean;
103
- export declare function existsOffset<T>(predicate_mut: ((arg0: T) => boolean), array_mut: T[], index_mut: int32): boolean;
104
- export declare function exists<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): boolean;
105
- export declare function existsOffset2<$a, $b>(predicate_mut: ((arg0: $a, arg1: $b) => boolean), array1_mut: $a[], array2_mut: $b[], index_mut: int32): boolean;
106
- export declare function exists2<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), array1: $a[], array2: $b[]): boolean;
107
- export declare function sum<T>(array: T[], adder: any): T;
108
- export declare function sumBy<T, T2>(projection: ((arg0: T) => T2), array: T[], adder: any): T2;
109
- export declare function maxBy<a, b>(projection: ((arg0: a) => b), xs: a[], comparer: IComparer<b>): a;
110
- export declare function max<a>(xs: a[], comparer: IComparer<a>): a;
111
- export declare function minBy<a, b>(projection: ((arg0: a) => b), xs: a[], comparer: IComparer<b>): a;
112
- export declare function min<a>(xs: a[], comparer: IComparer<a>): a;
113
- export declare function average<T>(array: T[], averager: any): T;
114
- export declare function averageBy<T, T2>(projection: ((arg0: T) => T2), array: T[], averager: any): T2;
115
- export declare function windowed<T>(windowSize: int32, source: T[]): T[][];
116
- export declare function splitInto<T>(chunks: int32, array: T[]): T[][];
117
- export declare function transpose<T>(arrays: Iterable<T[]>, cons?: any): T[][];
118
- export declare function insertAt<T>(index: int32, y: T, xs: T[], cons?: any): T[];
119
- export declare function insertManyAt<T>(index: int32, ys: Iterable<T>, xs: T[], cons?: any): T[];
120
- export declare function removeAt<T>(index: int32, xs: T[]): T[];
121
- export declare function removeManyAt<T>(index: int32, count: int32, xs: T[]): T[];
122
- export declare function updateAt<T>(index: int32, y: T, xs: T[], cons?: any): T[];
123
- export declare function resize<T>(xs: FSharpRef<T[]>, newSize: int32, zero?: Option<T>, cons?: any): void;