@elaraai/east 0.0.1-beta.9 → 1.0.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 (410) hide show
  1. package/LICENSE.md +15 -666
  2. package/README.md +113 -88
  3. package/dist/src/analyze.d.ts +3 -0
  4. package/dist/src/analyze.d.ts.map +1 -1
  5. package/dist/src/analyze.js +223 -111
  6. package/dist/src/analyze.js.map +1 -1
  7. package/dist/src/analyze.spec.d.ts +2 -0
  8. package/dist/src/analyze.spec.d.ts.map +1 -0
  9. package/dist/src/analyze.spec.js +445 -0
  10. package/dist/src/analyze.spec.js.map +1 -0
  11. package/dist/src/ast.d.ts +54 -35
  12. package/dist/src/ast.d.ts.map +1 -1
  13. package/dist/src/ast_to_ir.coerce_to.spec.d.ts +15 -0
  14. package/dist/src/ast_to_ir.coerce_to.spec.d.ts.map +1 -0
  15. package/dist/src/ast_to_ir.coerce_to.spec.js +420 -0
  16. package/dist/src/ast_to_ir.coerce_to.spec.js.map +1 -0
  17. package/dist/src/ast_to_ir.d.ts +18 -4
  18. package/dist/src/ast_to_ir.d.ts.map +1 -1
  19. package/dist/src/ast_to_ir.js +233 -178
  20. package/dist/src/ast_to_ir.js.map +1 -1
  21. package/dist/src/builtins.d.ts +1 -1
  22. package/dist/src/builtins.d.ts.map +1 -1
  23. package/dist/src/builtins.js +194 -2
  24. package/dist/src/builtins.js.map +1 -1
  25. package/dist/src/comparison.d.ts +2 -2
  26. package/dist/src/comparison.d.ts.map +1 -1
  27. package/dist/src/comparison.js +115 -40
  28. package/dist/src/comparison.js.map +1 -1
  29. package/dist/src/comparison.spec.d.ts +2 -0
  30. package/dist/src/comparison.spec.d.ts.map +1 -0
  31. package/dist/src/comparison.spec.js +1200 -0
  32. package/dist/src/comparison.spec.js.map +1 -0
  33. package/dist/src/compile.d.ts +31 -9
  34. package/dist/src/compile.d.ts.map +1 -1
  35. package/dist/src/compile.js +1048 -548
  36. package/dist/src/compile.js.map +1 -1
  37. package/dist/src/containers/matrix.d.ts +15 -0
  38. package/dist/src/containers/matrix.d.ts.map +1 -0
  39. package/dist/src/containers/matrix.js +15 -0
  40. package/dist/src/containers/matrix.js.map +1 -0
  41. package/dist/src/containers/ref.d.ts.map +1 -1
  42. package/dist/src/containers/ref.js +1 -1
  43. package/dist/src/containers/ref.js.map +1 -1
  44. package/dist/src/containers/sortedmap.spec.d.ts +2 -0
  45. package/dist/src/containers/sortedmap.spec.d.ts.map +1 -0
  46. package/dist/src/containers/sortedmap.spec.js +180 -0
  47. package/dist/src/containers/sortedmap.spec.js.map +1 -0
  48. package/dist/src/containers/sortedset.spec.d.ts +2 -0
  49. package/dist/src/containers/sortedset.spec.d.ts.map +1 -0
  50. package/dist/src/containers/sortedset.spec.js +228 -0
  51. package/dist/src/containers/sortedset.spec.js.map +1 -0
  52. package/dist/src/containers/variant.d.ts.map +1 -1
  53. package/dist/src/containers/variant.js +1 -1
  54. package/dist/src/containers/variant.js.map +1 -1
  55. package/dist/src/containers/variant.spec.d.ts +2 -0
  56. package/dist/src/containers/variant.spec.d.ts.map +1 -0
  57. package/dist/src/containers/variant.spec.js +217 -0
  58. package/dist/src/containers/variant.spec.js.map +1 -0
  59. package/dist/src/datetime_format/parse.spec.d.ts +6 -0
  60. package/dist/src/datetime_format/parse.spec.d.ts.map +1 -0
  61. package/dist/src/datetime_format/parse.spec.js +379 -0
  62. package/dist/src/datetime_format/parse.spec.js.map +1 -0
  63. package/dist/src/datetime_format/print.spec.d.ts +6 -0
  64. package/dist/src/datetime_format/print.spec.d.ts.map +1 -0
  65. package/dist/src/datetime_format/print.spec.js +257 -0
  66. package/dist/src/datetime_format/print.spec.js.map +1 -0
  67. package/dist/src/datetime_format/tokenize.spec.d.ts +2 -0
  68. package/dist/src/datetime_format/tokenize.spec.d.ts.map +1 -0
  69. package/dist/src/datetime_format/tokenize.spec.js +508 -0
  70. package/dist/src/datetime_format/tokenize.spec.js.map +1 -0
  71. package/dist/src/datetime_format/types.d.ts +23 -23
  72. package/dist/src/default.d.ts.map +1 -1
  73. package/dist/src/default.js +33 -0
  74. package/dist/src/default.js.map +1 -1
  75. package/dist/src/default.spec.d.ts +2 -0
  76. package/dist/src/default.spec.d.ts.map +1 -0
  77. package/dist/src/default.spec.js +178 -0
  78. package/dist/src/default.spec.js.map +1 -0
  79. package/dist/src/eastir.d.ts +7 -0
  80. package/dist/src/eastir.d.ts.map +1 -1
  81. package/dist/src/eastir.js +55 -7
  82. package/dist/src/eastir.js.map +1 -1
  83. package/dist/src/error.d.ts +14 -4
  84. package/dist/src/error.d.ts.map +1 -1
  85. package/dist/src/error.js +28 -3
  86. package/dist/src/error.js.map +1 -1
  87. package/dist/src/example.d.ts +87 -0
  88. package/dist/src/example.d.ts.map +1 -0
  89. package/dist/src/example.js +18 -0
  90. package/dist/src/example.js.map +1 -0
  91. package/dist/src/expr/array.d.ts +43 -1
  92. package/dist/src/expr/array.d.ts.map +1 -1
  93. package/dist/src/expr/array.js +103 -53
  94. package/dist/src/expr/array.js.map +1 -1
  95. package/dist/src/expr/ast.d.ts +1 -1
  96. package/dist/src/expr/ast.d.ts.map +1 -1
  97. package/dist/src/expr/ast.js +112 -54
  98. package/dist/src/expr/ast.js.map +1 -1
  99. package/dist/src/expr/asyncfunction.d.ts.map +1 -1
  100. package/dist/src/expr/asyncfunction.js +6 -4
  101. package/dist/src/expr/asyncfunction.js.map +1 -1
  102. package/dist/src/expr/blob.d.ts +48 -0
  103. package/dist/src/expr/blob.d.ts.map +1 -1
  104. package/dist/src/expr/blob.js +63 -8
  105. package/dist/src/expr/blob.js.map +1 -1
  106. package/dist/src/expr/block.d.ts +213 -12
  107. package/dist/src/expr/block.d.ts.map +1 -1
  108. package/dist/src/expr/block.js +796 -293
  109. package/dist/src/expr/block.js.map +1 -1
  110. package/dist/src/expr/boolean.d.ts +44 -0
  111. package/dist/src/expr/boolean.d.ts.map +1 -1
  112. package/dist/src/expr/boolean.js +58 -6
  113. package/dist/src/expr/boolean.js.map +1 -1
  114. package/dist/src/expr/datetime.d.ts +135 -0
  115. package/dist/src/expr/datetime.d.ts.map +1 -1
  116. package/dist/src/expr/datetime.js +184 -34
  117. package/dist/src/expr/datetime.js.map +1 -1
  118. package/dist/src/expr/dict.d.ts +47 -2
  119. package/dist/src/expr/dict.d.ts.map +1 -1
  120. package/dist/src/expr/dict.js +122 -61
  121. package/dist/src/expr/dict.js.map +1 -1
  122. package/dist/src/expr/expr.d.ts +3 -1
  123. package/dist/src/expr/expr.d.ts.map +1 -1
  124. package/dist/src/expr/expr.js +4 -3
  125. package/dist/src/expr/expr.js.map +1 -1
  126. package/dist/src/expr/float.d.ts +153 -0
  127. package/dist/src/expr/float.d.ts.map +1 -1
  128. package/dist/src/expr/float.js +191 -17
  129. package/dist/src/expr/float.js.map +1 -1
  130. package/dist/src/expr/function.d.ts +7 -2
  131. package/dist/src/expr/function.d.ts.map +1 -1
  132. package/dist/src/expr/function.js +6 -4
  133. package/dist/src/expr/function.js.map +1 -1
  134. package/dist/src/expr/index.d.ts +186 -2
  135. package/dist/src/expr/index.d.ts.map +1 -1
  136. package/dist/src/expr/index.js +183 -2
  137. package/dist/src/expr/index.js.map +1 -1
  138. package/dist/src/expr/integer.d.ts +180 -0
  139. package/dist/src/expr/integer.d.ts.map +1 -1
  140. package/dist/src/expr/integer.js +189 -18
  141. package/dist/src/expr/integer.js.map +1 -1
  142. package/dist/src/expr/libs/array.js +3 -3
  143. package/dist/src/expr/libs/array.js.map +1 -1
  144. package/dist/src/expr/libs/blob.js +3 -3
  145. package/dist/src/expr/libs/blob.js.map +1 -1
  146. package/dist/src/expr/libs/dict.js +1 -1
  147. package/dist/src/expr/libs/dict.js.map +1 -1
  148. package/dist/src/expr/libs/matrix.d.ts +17 -0
  149. package/dist/src/expr/libs/matrix.d.ts.map +1 -0
  150. package/dist/src/expr/libs/matrix.js +60 -0
  151. package/dist/src/expr/libs/matrix.js.map +1 -0
  152. package/dist/src/expr/libs/set.js +1 -1
  153. package/dist/src/expr/libs/set.js.map +1 -1
  154. package/dist/src/expr/libs/string.d.ts.map +1 -1
  155. package/dist/src/expr/libs/string.js +2 -1
  156. package/dist/src/expr/libs/string.js.map +1 -1
  157. package/dist/src/expr/libs/vector.d.ts +16 -0
  158. package/dist/src/expr/libs/vector.d.ts.map +1 -0
  159. package/dist/src/expr/libs/vector.js +44 -0
  160. package/dist/src/expr/libs/vector.js.map +1 -0
  161. package/dist/src/expr/matrix.d.ts +109 -0
  162. package/dist/src/expr/matrix.d.ts.map +1 -0
  163. package/dist/src/expr/matrix.js +224 -0
  164. package/dist/src/expr/matrix.js.map +1 -0
  165. package/dist/src/expr/recursive.d.ts +83 -0
  166. package/dist/src/expr/recursive.d.ts.map +1 -0
  167. package/dist/src/expr/recursive.js +99 -0
  168. package/dist/src/expr/recursive.js.map +1 -0
  169. package/dist/src/expr/ref.js +5 -5
  170. package/dist/src/expr/ref.js.map +1 -1
  171. package/dist/src/expr/set.d.ts +44 -2
  172. package/dist/src/expr/set.d.ts.map +1 -1
  173. package/dist/src/expr/set.js +102 -52
  174. package/dist/src/expr/set.js.map +1 -1
  175. package/dist/src/expr/string.d.ts +134 -0
  176. package/dist/src/expr/string.d.ts.map +1 -1
  177. package/dist/src/expr/string.js +173 -23
  178. package/dist/src/expr/string.js.map +1 -1
  179. package/dist/src/expr/struct.d.ts +1 -1
  180. package/dist/src/expr/struct.d.ts.map +1 -1
  181. package/dist/src/expr/struct.js +2 -2
  182. package/dist/src/expr/struct.js.map +1 -1
  183. package/dist/src/expr/types.d.ts +12 -9
  184. package/dist/src/expr/types.d.ts.map +1 -1
  185. package/dist/src/expr/variant.d.ts +108 -11
  186. package/dist/src/expr/variant.d.ts.map +1 -1
  187. package/dist/src/expr/variant.js +76 -38
  188. package/dist/src/expr/variant.js.map +1 -1
  189. package/dist/src/expr/vector.d.ts +102 -0
  190. package/dist/src/expr/vector.d.ts.map +1 -0
  191. package/dist/src/expr/vector.js +202 -0
  192. package/dist/src/expr/vector.js.map +1 -0
  193. package/dist/src/fuzz.d.ts +36 -2
  194. package/dist/src/fuzz.d.ts.map +1 -1
  195. package/dist/src/fuzz.js +409 -77
  196. package/dist/src/fuzz.js.map +1 -1
  197. package/dist/src/index.d.ts +4 -0
  198. package/dist/src/index.d.ts.map +1 -1
  199. package/dist/src/index.js +4 -0
  200. package/dist/src/index.js.map +1 -1
  201. package/dist/src/internal.d.ts +12 -2
  202. package/dist/src/internal.d.ts.map +1 -1
  203. package/dist/src/internal.js +13 -2
  204. package/dist/src/internal.js.map +1 -1
  205. package/dist/src/ir.d.ts +1754 -1484
  206. package/dist/src/ir.d.ts.map +1 -1
  207. package/dist/src/ir.js +51 -34
  208. package/dist/src/ir.js.map +1 -1
  209. package/dist/src/ir.spec.d.ts +2 -0
  210. package/dist/src/ir.spec.d.ts.map +1 -0
  211. package/dist/src/ir.spec.js +35 -0
  212. package/dist/src/ir.spec.js.map +1 -0
  213. package/dist/src/location.d.ts +56 -17
  214. package/dist/src/location.d.ts.map +1 -1
  215. package/dist/src/location.js +226 -29
  216. package/dist/src/location.js.map +1 -1
  217. package/dist/src/location.spec.d.ts +2 -0
  218. package/dist/src/location.spec.d.ts.map +1 -0
  219. package/dist/src/location.spec.js +102 -0
  220. package/dist/src/location.spec.js.map +1 -0
  221. package/dist/src/patch/apply.d.ts +15 -0
  222. package/dist/src/patch/apply.d.ts.map +1 -0
  223. package/dist/src/patch/apply.js +352 -0
  224. package/dist/src/patch/apply.js.map +1 -0
  225. package/dist/src/patch/compose.d.ts +15 -0
  226. package/dist/src/patch/compose.d.ts.map +1 -0
  227. package/dist/src/patch/compose.js +448 -0
  228. package/dist/src/patch/compose.js.map +1 -0
  229. package/dist/src/patch/diff.d.ts +15 -0
  230. package/dist/src/patch/diff.d.ts.map +1 -0
  231. package/dist/src/patch/diff.js +347 -0
  232. package/dist/src/patch/diff.js.map +1 -0
  233. package/dist/src/patch/fuzz.d.ts +73 -0
  234. package/dist/src/patch/fuzz.d.ts.map +1 -0
  235. package/dist/src/patch/fuzz.js +159 -0
  236. package/dist/src/patch/fuzz.js.map +1 -0
  237. package/dist/src/patch/index.d.ts +32 -0
  238. package/dist/src/patch/index.d.ts.map +1 -0
  239. package/dist/src/patch/index.js +48 -0
  240. package/dist/src/patch/index.js.map +1 -0
  241. package/dist/src/patch/invert.d.ts +15 -0
  242. package/dist/src/patch/invert.d.ts.map +1 -0
  243. package/dist/src/patch/invert.js +284 -0
  244. package/dist/src/patch/invert.js.map +1 -0
  245. package/dist/src/patch/merge.d.ts +56 -0
  246. package/dist/src/patch/merge.d.ts.map +1 -0
  247. package/dist/src/patch/merge.js +586 -0
  248. package/dist/src/patch/merge.js.map +1 -0
  249. package/dist/src/patch/merge.spec.d.ts +2 -0
  250. package/dist/src/patch/merge.spec.d.ts.map +1 -0
  251. package/dist/src/patch/merge.spec.js +1139 -0
  252. package/dist/src/patch/merge.spec.js.map +1 -0
  253. package/dist/src/patch/patch.spec.d.ts +2 -0
  254. package/dist/src/patch/patch.spec.d.ts.map +1 -0
  255. package/dist/src/patch/patch.spec.js +452 -0
  256. package/dist/src/patch/patch.spec.js.map +1 -0
  257. package/dist/src/patch/path.d.ts +115 -0
  258. package/dist/src/patch/path.d.ts.map +1 -0
  259. package/dist/src/patch/path.js +192 -0
  260. package/dist/src/patch/path.js.map +1 -0
  261. package/dist/src/patch/path.spec.d.ts +6 -0
  262. package/dist/src/patch/path.spec.d.ts.map +1 -0
  263. package/dist/src/patch/path.spec.js +322 -0
  264. package/dist/src/patch/path.spec.js.map +1 -0
  265. package/dist/src/patch/prune.d.ts +77 -0
  266. package/dist/src/patch/prune.d.ts.map +1 -0
  267. package/dist/src/patch/prune.js +115 -0
  268. package/dist/src/patch/prune.js.map +1 -0
  269. package/dist/src/patch/prune.spec.d.ts +6 -0
  270. package/dist/src/patch/prune.spec.d.ts.map +1 -0
  271. package/dist/src/patch/prune.spec.js +473 -0
  272. package/dist/src/patch/prune.spec.js.map +1 -0
  273. package/dist/src/patch/type_of_patch.d.ts +25 -0
  274. package/dist/src/patch/type_of_patch.d.ts.map +1 -0
  275. package/dist/src/patch/type_of_patch.js +144 -0
  276. package/dist/src/patch/type_of_patch.js.map +1 -0
  277. package/dist/src/patch/types.d.ts +220 -0
  278. package/dist/src/patch/types.d.ts.map +1 -0
  279. package/dist/src/patch/types.js +62 -0
  280. package/dist/src/patch/types.js.map +1 -0
  281. package/dist/src/patch/validate.d.ts +44 -0
  282. package/dist/src/patch/validate.d.ts.map +1 -0
  283. package/dist/src/patch/validate.js +190 -0
  284. package/dist/src/patch/validate.js.map +1 -0
  285. package/dist/src/patch/validate.spec.d.ts +6 -0
  286. package/dist/src/patch/validate.spec.d.ts.map +1 -0
  287. package/dist/src/patch/validate.spec.js +225 -0
  288. package/dist/src/patch/validate.spec.js.map +1 -0
  289. package/dist/src/patch/walk.d.ts +121 -0
  290. package/dist/src/patch/walk.d.ts.map +1 -0
  291. package/dist/src/patch/walk.js +385 -0
  292. package/dist/src/patch/walk.js.map +1 -0
  293. package/dist/src/patch/walk.spec.d.ts +6 -0
  294. package/dist/src/patch/walk.spec.d.ts.map +1 -0
  295. package/dist/src/patch/walk.spec.js +621 -0
  296. package/dist/src/patch/walk.spec.js.map +1 -0
  297. package/dist/src/platform.d.ts +6 -0
  298. package/dist/src/platform.d.ts.map +1 -1
  299. package/dist/src/platform.spec.d.ts +2 -0
  300. package/dist/src/platform.spec.d.ts.map +1 -0
  301. package/dist/src/platform.spec.js +330 -0
  302. package/dist/src/platform.spec.js.map +1 -0
  303. package/dist/src/serialization/beast.d.ts.map +1 -1
  304. package/dist/src/serialization/beast.js +12 -0
  305. package/dist/src/serialization/beast.js.map +1 -1
  306. package/dist/src/serialization/beast.spec.d.ts +6 -0
  307. package/dist/src/serialization/beast.spec.d.ts.map +1 -0
  308. package/dist/src/serialization/beast.spec.js +406 -0
  309. package/dist/src/serialization/beast.spec.js.map +1 -0
  310. package/dist/src/serialization/beast2/index.d.ts +50 -0
  311. package/dist/src/serialization/beast2/index.d.ts.map +1 -0
  312. package/dist/src/serialization/beast2/index.js +756 -0
  313. package/dist/src/serialization/beast2/index.js.map +1 -0
  314. package/dist/src/serialization/beast2/index.spec.d.ts +6 -0
  315. package/dist/src/serialization/beast2/index.spec.d.ts.map +1 -0
  316. package/dist/src/serialization/beast2/index.spec.js +528 -0
  317. package/dist/src/serialization/beast2/index.spec.js.map +1 -0
  318. package/dist/src/serialization/beast2/sourcemap-table.d.ts +29 -0
  319. package/dist/src/serialization/beast2/sourcemap-table.d.ts.map +1 -0
  320. package/dist/src/serialization/beast2/sourcemap-table.js +82 -0
  321. package/dist/src/serialization/beast2/sourcemap-table.js.map +1 -0
  322. package/dist/src/serialization/beast2/string-table.d.ts +16 -0
  323. package/dist/src/serialization/beast2/string-table.d.ts.map +1 -0
  324. package/dist/src/serialization/beast2/string-table.js +38 -0
  325. package/dist/src/serialization/beast2/string-table.js.map +1 -0
  326. package/dist/src/serialization/beast2/type-table.d.ts +86 -0
  327. package/dist/src/serialization/beast2/type-table.d.ts.map +1 -0
  328. package/dist/src/serialization/beast2/type-table.js +618 -0
  329. package/dist/src/serialization/beast2/type-table.js.map +1 -0
  330. package/dist/src/serialization/beast2/value-table.d.ts +40 -0
  331. package/dist/src/serialization/beast2/value-table.d.ts.map +1 -0
  332. package/dist/src/serialization/beast2/value-table.js +157 -0
  333. package/dist/src/serialization/beast2/value-table.js.map +1 -0
  334. package/dist/src/serialization/binary-utils.d.ts +33 -0
  335. package/dist/src/serialization/binary-utils.d.ts.map +1 -1
  336. package/dist/src/serialization/binary-utils.js +157 -0
  337. package/dist/src/serialization/binary-utils.js.map +1 -1
  338. package/dist/src/serialization/csv.d.ts +17 -17
  339. package/dist/src/serialization/csv.d.ts.map +1 -1
  340. package/dist/src/serialization/csv.js +10 -8
  341. package/dist/src/serialization/csv.js.map +1 -1
  342. package/dist/src/serialization/csv.spec.d.ts +2 -0
  343. package/dist/src/serialization/csv.spec.d.ts.map +1 -0
  344. package/dist/src/serialization/csv.spec.js +556 -0
  345. package/dist/src/serialization/csv.spec.js.map +1 -0
  346. package/dist/src/serialization/east-inferred.spec.d.ts +2 -0
  347. package/dist/src/serialization/east-inferred.spec.d.ts.map +1 -0
  348. package/dist/src/serialization/east-inferred.spec.js +322 -0
  349. package/dist/src/serialization/east-inferred.spec.js.map +1 -0
  350. package/dist/src/serialization/east.d.ts +1 -1
  351. package/dist/src/serialization/east.d.ts.map +1 -1
  352. package/dist/src/serialization/east.js +178 -26
  353. package/dist/src/serialization/east.js.map +1 -1
  354. package/dist/src/serialization/east.spec.d.ts +2 -0
  355. package/dist/src/serialization/east.spec.d.ts.map +1 -0
  356. package/dist/src/serialization/east.spec.js +1548 -0
  357. package/dist/src/serialization/east.spec.js.map +1 -0
  358. package/dist/src/serialization/index.d.ts +1 -2
  359. package/dist/src/serialization/index.d.ts.map +1 -1
  360. package/dist/src/serialization/index.js +1 -2
  361. package/dist/src/serialization/index.js.map +1 -1
  362. package/dist/src/serialization/json.d.ts +1 -1
  363. package/dist/src/serialization/json.d.ts.map +1 -1
  364. package/dist/src/serialization/json.js +123 -24
  365. package/dist/src/serialization/json.js.map +1 -1
  366. package/dist/src/serialization/json.spec.d.ts +2 -0
  367. package/dist/src/serialization/json.spec.d.ts.map +1 -0
  368. package/dist/src/serialization/json.spec.js +1297 -0
  369. package/dist/src/serialization/json.spec.js.map +1 -0
  370. package/dist/src/type_of_type.d.ts +72 -35
  371. package/dist/src/type_of_type.d.ts.map +1 -1
  372. package/dist/src/type_of_type.is_data.spec.d.ts +6 -0
  373. package/dist/src/type_of_type.is_data.spec.d.ts.map +1 -0
  374. package/dist/src/type_of_type.is_data.spec.js +221 -0
  375. package/dist/src/type_of_type.is_data.spec.js.map +1 -0
  376. package/dist/src/type_of_type.js +355 -80
  377. package/dist/src/type_of_type.js.map +1 -1
  378. package/dist/src/type_of_type.to_etv.spec.d.ts +6 -0
  379. package/dist/src/type_of_type.to_etv.spec.d.ts.map +1 -0
  380. package/dist/src/type_of_type.to_etv.spec.js +263 -0
  381. package/dist/src/type_of_type.to_etv.spec.js.map +1 -0
  382. package/dist/src/types.d.ts +82 -12
  383. package/dist/src/types.d.ts.map +1 -1
  384. package/dist/src/types.error.spec.d.ts +2 -0
  385. package/dist/src/types.error.spec.d.ts.map +1 -0
  386. package/dist/src/types.error.spec.js +665 -0
  387. package/dist/src/types.error.spec.js.map +1 -0
  388. package/dist/src/types.js +663 -156
  389. package/dist/src/types.js.map +1 -1
  390. package/dist/src/types.spec.d.ts +2 -0
  391. package/dist/src/types.spec.d.ts.map +1 -0
  392. package/dist/src/types.spec.js +946 -0
  393. package/dist/src/types.spec.js.map +1 -0
  394. package/dist/src/walker.d.ts +65 -0
  395. package/dist/src/walker.d.ts.map +1 -0
  396. package/dist/src/walker.js +165 -0
  397. package/dist/src/walker.js.map +1 -0
  398. package/dist/src/walker.spec.d.ts +6 -0
  399. package/dist/src/walker.spec.d.ts.map +1 -0
  400. package/dist/src/walker.spec.js +109 -0
  401. package/dist/src/walker.spec.js.map +1 -0
  402. package/package.json +16 -38
  403. package/dist/src/serialization/beast2-stream.d.ts +0 -38
  404. package/dist/src/serialization/beast2-stream.d.ts.map +0 -1
  405. package/dist/src/serialization/beast2-stream.js +0 -670
  406. package/dist/src/serialization/beast2-stream.js.map +0 -1
  407. package/dist/src/serialization/beast2.d.ts +0 -41
  408. package/dist/src/serialization/beast2.d.ts.map +0 -1
  409. package/dist/src/serialization/beast2.js +0 -495
  410. package/dist/src/serialization/beast2.js.map +0 -1
@@ -15,14 +15,17 @@ export { StringExpr } from './string.js';
15
15
  export { BlobExpr } from './blob.js';
16
16
  export { RefExpr } from './ref.js';
17
17
  export { ArrayExpr } from './array.js';
18
+ export { VectorExpr } from './vector.js';
19
+ export { MatrixExpr } from './matrix.js';
18
20
  export { SetExpr } from './set.js';
19
21
  export { DictExpr } from './dict.js';
20
22
  export { StructExpr } from './struct.js';
21
23
  export { VariantExpr } from './variant.js';
24
+ export { RecursiveExpr } from './recursive.js';
22
25
  export { type CallableFunctionExpr, FunctionExpr } from './function.js';
23
26
  export { type CallableAsyncFunctionExpr, AsyncFunctionExpr } from './asyncfunction.js';
24
- import { from, equal, notEqual, less, lessEqual, print, is, greaterEqual, greater, func, str, platform, asyncFunction, asyncPlatform, compile, compileAsync } from './block.js';
25
- export { BlockBuilder, type AsyncPlatformDefinition, type PlatformDefinition } from './block.js';
27
+ import { from, equal, notEqual, less, lessEqual, print, is, greaterEqual, greater, func, str, platform, asyncFunction, asyncPlatform, genericPlatform, asyncGenericPlatform, compile, compileAsync, diff, applyPatch, composePatch, invertPatch } from './block.js';
28
+ export { BlockBuilder, type AsyncPlatformDefinition, type PlatformDefinition, type GenericPlatformDefinition, type AsyncGenericPlatformDefinition, equals, eq, notEquals, ne, lessThan, lt, lessThanOrEqual, lte, le, greaterThan, gt, greaterThanOrEqual, gte, ge, diff, applyPatch, composePatch, invertPatch } from './block.js';
26
29
  export type { ToExpr as ExprFactory } from './expr.js';
27
30
  /**
28
31
  * Standard entry point for constructing East expressions.
@@ -223,6 +226,77 @@ export declare const East: {
223
226
  * ```
224
227
  */
225
228
  asyncPlatform: typeof asyncPlatform;
229
+ /**
230
+ * Defines a generic (polymorphic) platform function with type parameters.
231
+ * Type parameters are passed at call time and flow through to the implementation.
232
+ *
233
+ * @param name - The name of the platform function
234
+ * @param typeParams - Array of type parameter names (e.g., `["T", "U"]`)
235
+ * @param inputsFn - Callback that receives placeholder types and returns input types
236
+ * @param outputFn - Callback that receives placeholder types and returns output type
237
+ * @returns A callable generic platform function helper
238
+ *
239
+ * @see {@link platform} for non-generic platform functions.
240
+ * @see {@link asyncGenericPlatform} for async generic platform functions.
241
+ *
242
+ * @example
243
+ * ```ts
244
+ * // Define a generic log function
245
+ * const log = East.genericPlatform(
246
+ * "log",
247
+ * ["T"],
248
+ * (T) => [T],
249
+ * (_T) => NullType
250
+ * );
251
+ *
252
+ * // Use it - type is passed first, then value
253
+ * const myFunction = East.function([StringType], NullType, ($, s) => {
254
+ * $(log(StringType, s));
255
+ * });
256
+ *
257
+ * // Implementation receives type params as a factory
258
+ * const platform = [
259
+ * log.implement((T) => (value) => {
260
+ * console.log(printFor(T)(value));
261
+ * return null;
262
+ * }),
263
+ * ];
264
+ * ```
265
+ */
266
+ genericPlatform: typeof genericPlatform;
267
+ /**
268
+ * Defines an asynchronous generic (polymorphic) platform function with type parameters.
269
+ * The async variant of `genericPlatform`.
270
+ *
271
+ * @param name - The name of the platform function
272
+ * @param typeParams - Array of type parameter names (e.g., `["T", "U"]`)
273
+ * @param inputsFn - Callback that receives placeholder types and returns input types
274
+ * @param outputFn - Callback that receives placeholder types and returns output type
275
+ * @returns A callable async generic platform function helper
276
+ *
277
+ * @see {@link genericPlatform} for sync generic platform functions.
278
+ * @see {@link asyncPlatform} for non-generic async platform functions.
279
+ *
280
+ * @example
281
+ * ```ts
282
+ * // Define an async generic fetch function
283
+ * const fetchAs = East.asyncGenericPlatform(
284
+ * "fetchAs",
285
+ * ["T"],
286
+ * (_T) => [StringType], // URL input
287
+ * (T) => T // Returns parsed value of type T
288
+ * );
289
+ *
290
+ * // Implementation receives type params and returns async function
291
+ * const platform = [
292
+ * fetchAs.implement((T) => async (url) => {
293
+ * const response = await fetch(url);
294
+ * return parseFor(T)(await response.text());
295
+ * }),
296
+ * ];
297
+ * ```
298
+ */
299
+ asyncGenericPlatform: typeof asyncGenericPlatform;
226
300
  /**
227
301
  * Converts any East expression to its string representation.
228
302
  * Uses the East serialization format (not JSON).
@@ -329,6 +403,34 @@ export declare const East: {
329
403
  * ```
330
404
  */
331
405
  greaterEqual: typeof greaterEqual;
406
+ /** Alias for {@link equal} */
407
+ equals: typeof equal;
408
+ /** Alias for {@link equal} */
409
+ eq: typeof equal;
410
+ /** Alias for {@link notEqual} */
411
+ notEquals: typeof notEqual;
412
+ /** Alias for {@link notEqual} */
413
+ ne: typeof notEqual;
414
+ /** Alias for {@link less} */
415
+ lessThan: typeof less;
416
+ /** Alias for {@link less} */
417
+ lt: typeof less;
418
+ /** Alias for {@link lessEqual} */
419
+ lessThanOrEqual: typeof lessEqual;
420
+ /** Alias for {@link lessEqual} */
421
+ lte: typeof lessEqual;
422
+ /** Alias for {@link lessEqual} */
423
+ le: typeof lessEqual;
424
+ /** Alias for {@link greater} */
425
+ greaterThan: typeof greater;
426
+ /** Alias for {@link greater} */
427
+ gt: typeof greater;
428
+ /** Alias for {@link greaterEqual} */
429
+ greaterThanOrEqual: typeof greaterEqual;
430
+ /** Alias for {@link greaterEqual} */
431
+ gte: typeof greaterEqual;
432
+ /** Alias for {@link greaterEqual} */
433
+ ge: typeof greaterEqual;
332
434
  /**
333
435
  * Reference equality comparison for mutable types (Array, Set, Dict).
334
436
  * Checks if two expressions reference the same object in memory.
@@ -345,6 +447,67 @@ export declare const East: {
345
447
  * ```
346
448
  */
347
449
  is: typeof is;
450
+ /**
451
+ * Compute the difference between two values of the same type.
452
+ * Returns a patch that, when applied to `before`, produces `after`.
453
+ *
454
+ * @param before - The original value
455
+ * @param after - The modified value
456
+ * @returns A patch describing the changes
457
+ *
458
+ * @example
459
+ * ```ts
460
+ * const before = East.value([1n, 2n, 3n]);
461
+ * const after = East.value([1n, 4n, 3n]);
462
+ * const patch = East.diff(before, after);
463
+ * ```
464
+ */
465
+ diff: typeof diff;
466
+ /**
467
+ * Apply a patch to a value, producing the modified value.
468
+ *
469
+ * @param value - The value to patch
470
+ * @param patch - The patch to apply
471
+ * @returns The patched value
472
+ * @throws East runtime error if the patch conflicts with the value
473
+ *
474
+ * @example
475
+ * ```ts
476
+ * const result = East.applyPatch(original, patch);
477
+ * ```
478
+ */
479
+ applyPatch: typeof applyPatch;
480
+ /**
481
+ * Compose two patches into a single patch.
482
+ * The result is a patch that has the same effect as applying `first` then `second`.
483
+ *
484
+ * @param first - The first patch to apply
485
+ * @param second - The second patch to apply
486
+ * @param type - The East type of the values being patched
487
+ * @returns A composed patch
488
+ * @throws East runtime error if the patches are incompatible
489
+ *
490
+ * @example
491
+ * ```ts
492
+ * const composed = East.composePatch(patch1, patch2, ArrayType(IntegerType));
493
+ * ```
494
+ */
495
+ composePatch: typeof composePatch;
496
+ /**
497
+ * Invert a patch, producing a patch that undoes the original.
498
+ * Applying the inverted patch to the "after" value produces the "before" value.
499
+ *
500
+ * @param patch - The patch to invert
501
+ * @param type - The East type of the values being patched
502
+ * @returns An inverted patch
503
+ *
504
+ * @example
505
+ * ```ts
506
+ * const inverted = East.invertPatch(patch, ArrayType(IntegerType));
507
+ * const original = East.applyPatch(modified, inverted);
508
+ * ```
509
+ */
510
+ invertPatch: typeof invertPatch;
348
511
  /**
349
512
  * Returns the minimum of two values using East's total ordering.
350
513
  *
@@ -526,6 +689,27 @@ export declare const East: {
526
689
  linspace(start: Expr<import("../types.js").FloatType> | number, stop: Expr<import("../types.js").FloatType> | number, size: Expr<import("../types.js").IntegerType> | bigint): import("./types.js").ExprType<import("../types.js").ArrayType<import("../types.js").FloatType>>;
527
690
  generate<T>(size: Expr<import("../types.js").IntegerType> | bigint, valueType: T, valueFn: import("./types.js").SubtypeExprOrValue<import("../types.js").FunctionType<[import("../types.js").IntegerType], NoInfer<T>>>): import("./types.js").ExprType<import("../types.js").ArrayType<T>>;
528
691
  };
692
+ /**
693
+ * Standard library functions for Vector operations.
694
+ * Provides creation utilities for creating vectors.
695
+ */
696
+ Vector: {
697
+ zeros(length: Expr<typeof import("../types.js").IntegerType> | bigint): import("./vector.js").VectorExpr<typeof import("../types.js").FloatType>;
698
+ ones(length: Expr<typeof import("../types.js").IntegerType> | bigint): import("./vector.js").VectorExpr<typeof import("../types.js").FloatType>;
699
+ fill<V extends unknown>(length: Expr<typeof import("../types.js").IntegerType> | bigint, value: V): import("./vector.js").VectorExpr<import("./types.js").TypeOf<V>>;
700
+ fromArray<V extends readonly unknown[] | Expr<import("../types.js").ArrayType<import("../types.js").EastType>>>(arr: V): import("./vector.js").VectorExpr<import("./types.js").TypeOf<V> extends import("../types.js").ArrayType<infer U> ? U : import("../types.js").EastType>;
701
+ };
702
+ /**
703
+ * Standard library functions for Matrix operations.
704
+ * Provides creation utilities for creating matrices.
705
+ */
706
+ Matrix: {
707
+ zeros(rows: Expr<typeof import("../types.js").IntegerType> | bigint, cols: Expr<typeof import("../types.js").IntegerType> | bigint): import("./matrix.js").MatrixExpr<typeof import("../types.js").FloatType>;
708
+ ones(rows: Expr<typeof import("../types.js").IntegerType> | bigint, cols: Expr<typeof import("../types.js").IntegerType> | bigint): import("./matrix.js").MatrixExpr<typeof import("../types.js").FloatType>;
709
+ fill<V extends unknown>(rows: Expr<typeof import("../types.js").IntegerType> | bigint, cols: Expr<typeof import("../types.js").IntegerType> | bigint, value: V): import("./matrix.js").MatrixExpr<import("./types.js").TypeOf<V>>;
710
+ fromArray<V extends readonly unknown[] | Expr<import("../types.js").ArrayType<import("../types.js").EastType>>>(arr: V): import("./matrix.js").MatrixExpr<import("./types.js").TypeOf<V> extends import("../types.js").ArrayType<import("../types.js").ArrayType<infer U>> ? U : import("../types.js").EastType>;
711
+ fromRows<V extends Expr<import("../types.js").ArrayType<import("../types.js").VectorType<import("../types.js").EastType>>>>(arr: V): import("./matrix.js").MatrixExpr<import("./types.js").TypeOf<V> extends import("../types.js").ArrayType<import("../types.js").VectorType<infer U>> ? U : import("../types.js").EastType>;
712
+ };
529
713
  /**
530
714
  * Standard library functions for Set operations.
531
715
  * Provides generation utilities for creating sets.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/expr/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,YAAY,CAAC;AAG3B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE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;;;;;OAaG;;IAKH;;;;;;;;;;;;OAYG;;IAGH;;;;;;;;;;;;OAYG;;IAGH;;;;;;;;;;;;;;OAcG;;IAKH;;;;;;;;;;;OAWG;;;;;;;;;;;;;;;IAGH;;;;;;;;;;;OAWG;;;;;;;;;;;;;;;;;;IAGH;;;;;;;;;;;OAWG;;;;;;;;;;;;;;;;;;;;;;;;;;IAGH;;;;;;;;OAQG;;;;;;;;;IAGH;;;;;;;;OAQG;;;;IAGH;;;;;;;;;;OAUG;;;;;;IAGH;;;OAGG;;;;;;;IAGH;;;OAGG;;;;;;;;IAGH;;;;;;;;OAQG;;;;IAGH;;;;;;;;;;;;;;OAcG;;;;CAEJ,CAAC"}
@@ -17,15 +17,18 @@ export { StringExpr } from './string.js';
17
17
  export { BlobExpr } from './blob.js';
18
18
  export { RefExpr } from './ref.js';
19
19
  export { ArrayExpr } from './array.js';
20
+ export { VectorExpr } from './vector.js';
21
+ export { MatrixExpr } from './matrix.js';
20
22
  export { SetExpr } from './set.js';
21
23
  export { DictExpr } from './dict.js';
22
24
  export { StructExpr } from './struct.js';
23
25
  export { VariantExpr } from './variant.js';
26
+ export { RecursiveExpr } from './recursive.js';
24
27
  export { FunctionExpr } from './function.js';
25
28
  export { AsyncFunctionExpr } from './asyncfunction.js';
26
29
  // Import factory implementation
27
- import { from, equal, notEqual, less, lessEqual, print, is, greaterEqual, greater, func, str, platform, asyncFunction, asyncPlatform, compile, compileAsync } from './block.js';
28
- export { BlockBuilder } from './block.js';
30
+ import { from, equal, notEqual, less, lessEqual, print, is, greaterEqual, greater, func, str, platform, asyncFunction, asyncPlatform, genericPlatform, asyncGenericPlatform, compile, compileAsync, equals, eq, notEquals, ne, lessThan, lt, lessThanOrEqual, lte, le, greaterThan, gt, greaterThanOrEqual, gte, ge, diff, applyPatch, composePatch, invertPatch } from './block.js';
31
+ export { BlockBuilder, equals, eq, notEquals, ne, lessThan, lt, lessThanOrEqual, lte, le, greaterThan, gt, greaterThanOrEqual, gte, ge, diff, applyPatch, composePatch, invertPatch } from './block.js';
29
32
  // Import standard libraries
30
33
  import IntegerLib from './libs/integer.js';
31
34
  import FloatLib from './libs/float.js';
@@ -33,6 +36,8 @@ import DateTimeLib from './libs/datetime.js';
33
36
  import StringLib from './libs/string.js';
34
37
  import BlobLib from './libs/blob.js';
35
38
  import ArrayLib from './libs/array.js';
39
+ import VectorLib from './libs/vector.js';
40
+ import MatrixLib from './libs/matrix.js';
36
41
  import SetLib from './libs/set.js';
37
42
  import DictLib from './libs/dict.js';
38
43
  // /** Compile an East function to executable JavaScript.
@@ -256,6 +261,77 @@ export const East = {
256
261
  * ```
257
262
  */
258
263
  asyncPlatform,
264
+ /**
265
+ * Defines a generic (polymorphic) platform function with type parameters.
266
+ * Type parameters are passed at call time and flow through to the implementation.
267
+ *
268
+ * @param name - The name of the platform function
269
+ * @param typeParams - Array of type parameter names (e.g., `["T", "U"]`)
270
+ * @param inputsFn - Callback that receives placeholder types and returns input types
271
+ * @param outputFn - Callback that receives placeholder types and returns output type
272
+ * @returns A callable generic platform function helper
273
+ *
274
+ * @see {@link platform} for non-generic platform functions.
275
+ * @see {@link asyncGenericPlatform} for async generic platform functions.
276
+ *
277
+ * @example
278
+ * ```ts
279
+ * // Define a generic log function
280
+ * const log = East.genericPlatform(
281
+ * "log",
282
+ * ["T"],
283
+ * (T) => [T],
284
+ * (_T) => NullType
285
+ * );
286
+ *
287
+ * // Use it - type is passed first, then value
288
+ * const myFunction = East.function([StringType], NullType, ($, s) => {
289
+ * $(log(StringType, s));
290
+ * });
291
+ *
292
+ * // Implementation receives type params as a factory
293
+ * const platform = [
294
+ * log.implement((T) => (value) => {
295
+ * console.log(printFor(T)(value));
296
+ * return null;
297
+ * }),
298
+ * ];
299
+ * ```
300
+ */
301
+ genericPlatform,
302
+ /**
303
+ * Defines an asynchronous generic (polymorphic) platform function with type parameters.
304
+ * The async variant of `genericPlatform`.
305
+ *
306
+ * @param name - The name of the platform function
307
+ * @param typeParams - Array of type parameter names (e.g., `["T", "U"]`)
308
+ * @param inputsFn - Callback that receives placeholder types and returns input types
309
+ * @param outputFn - Callback that receives placeholder types and returns output type
310
+ * @returns A callable async generic platform function helper
311
+ *
312
+ * @see {@link genericPlatform} for sync generic platform functions.
313
+ * @see {@link asyncPlatform} for non-generic async platform functions.
314
+ *
315
+ * @example
316
+ * ```ts
317
+ * // Define an async generic fetch function
318
+ * const fetchAs = East.asyncGenericPlatform(
319
+ * "fetchAs",
320
+ * ["T"],
321
+ * (_T) => [StringType], // URL input
322
+ * (T) => T // Returns parsed value of type T
323
+ * );
324
+ *
325
+ * // Implementation receives type params and returns async function
326
+ * const platform = [
327
+ * fetchAs.implement((T) => async (url) => {
328
+ * const response = await fetch(url);
329
+ * return parseFor(T)(await response.text());
330
+ * }),
331
+ * ];
332
+ * ```
333
+ */
334
+ asyncGenericPlatform,
259
335
  /**
260
336
  * Converts any East expression to its string representation.
261
337
  * Uses the East serialization format (not JSON).
@@ -362,6 +438,37 @@ export const East = {
362
438
  * ```
363
439
  */
364
440
  greaterEqual,
441
+ // ============================================================================
442
+ // Comparison function aliases
443
+ // ============================================================================
444
+ /** Alias for {@link equal} */
445
+ equals,
446
+ /** Alias for {@link equal} */
447
+ eq,
448
+ /** Alias for {@link notEqual} */
449
+ notEquals,
450
+ /** Alias for {@link notEqual} */
451
+ ne,
452
+ /** Alias for {@link less} */
453
+ lessThan,
454
+ /** Alias for {@link less} */
455
+ lt,
456
+ /** Alias for {@link lessEqual} */
457
+ lessThanOrEqual,
458
+ /** Alias for {@link lessEqual} */
459
+ lte,
460
+ /** Alias for {@link lessEqual} */
461
+ le,
462
+ /** Alias for {@link greater} */
463
+ greaterThan,
464
+ /** Alias for {@link greater} */
465
+ gt,
466
+ /** Alias for {@link greaterEqual} */
467
+ greaterThanOrEqual,
468
+ /** Alias for {@link greaterEqual} */
469
+ gte,
470
+ /** Alias for {@link greaterEqual} */
471
+ ge,
365
472
  /**
366
473
  * Reference equality comparison for mutable types (Array, Set, Dict).
367
474
  * Checks if two expressions reference the same object in memory.
@@ -378,6 +485,70 @@ export const East = {
378
485
  * ```
379
486
  */
380
487
  is,
488
+ // ============================================================================
489
+ // Patch Operations
490
+ // ============================================================================
491
+ /**
492
+ * Compute the difference between two values of the same type.
493
+ * Returns a patch that, when applied to `before`, produces `after`.
494
+ *
495
+ * @param before - The original value
496
+ * @param after - The modified value
497
+ * @returns A patch describing the changes
498
+ *
499
+ * @example
500
+ * ```ts
501
+ * const before = East.value([1n, 2n, 3n]);
502
+ * const after = East.value([1n, 4n, 3n]);
503
+ * const patch = East.diff(before, after);
504
+ * ```
505
+ */
506
+ diff,
507
+ /**
508
+ * Apply a patch to a value, producing the modified value.
509
+ *
510
+ * @param value - The value to patch
511
+ * @param patch - The patch to apply
512
+ * @returns The patched value
513
+ * @throws East runtime error if the patch conflicts with the value
514
+ *
515
+ * @example
516
+ * ```ts
517
+ * const result = East.applyPatch(original, patch);
518
+ * ```
519
+ */
520
+ applyPatch,
521
+ /**
522
+ * Compose two patches into a single patch.
523
+ * The result is a patch that has the same effect as applying `first` then `second`.
524
+ *
525
+ * @param first - The first patch to apply
526
+ * @param second - The second patch to apply
527
+ * @param type - The East type of the values being patched
528
+ * @returns A composed patch
529
+ * @throws East runtime error if the patches are incompatible
530
+ *
531
+ * @example
532
+ * ```ts
533
+ * const composed = East.composePatch(patch1, patch2, ArrayType(IntegerType));
534
+ * ```
535
+ */
536
+ composePatch,
537
+ /**
538
+ * Invert a patch, producing a patch that undoes the original.
539
+ * Applying the inverted patch to the "after" value produces the "before" value.
540
+ *
541
+ * @param patch - The patch to invert
542
+ * @param type - The East type of the values being patched
543
+ * @returns An inverted patch
544
+ *
545
+ * @example
546
+ * ```ts
547
+ * const inverted = East.invertPatch(patch, ArrayType(IntegerType));
548
+ * const original = East.applyPatch(modified, inverted);
549
+ * ```
550
+ */
551
+ invertPatch,
381
552
  // Root stdlib
382
553
  /**
383
554
  * Returns the minimum of two values using East's total ordering.
@@ -495,6 +666,16 @@ export const East = {
495
666
  * ```
496
667
  */
497
668
  Array: ArrayLib,
669
+ /**
670
+ * Standard library functions for Vector operations.
671
+ * Provides creation utilities for creating vectors.
672
+ */
673
+ Vector: VectorLib,
674
+ /**
675
+ * Standard library functions for Matrix operations.
676
+ * Provides creation utilities for creating matrices.
677
+ */
678
+ Matrix: MatrixLib,
498
679
  /**
499
680
  * Standard library functions for Set operations.
500
681
  * Provides generation utilities for creating sets.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/expr/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sBAAsB;AACtB,cAAc,YAAY,CAAC;AAE3B,+CAA+C;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAA6B,YAAY,E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