@elaraai/east 1.0.80 → 1.0.81

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 (144) hide show
  1. package/dist/src/builtins.d.ts +1 -1
  2. package/dist/src/builtins.d.ts.map +1 -1
  3. package/dist/src/builtins.js +19 -0
  4. package/dist/src/builtins.js.map +1 -1
  5. package/dist/src/codegen/spellings.d.ts.map +1 -1
  6. package/dist/src/codegen/spellings.js +3 -0
  7. package/dist/src/codegen/spellings.js.map +1 -1
  8. package/dist/src/comparison.d.ts +54 -0
  9. package/dist/src/comparison.d.ts.map +1 -1
  10. package/dist/src/comparison.equivalent.spec.d.ts +6 -0
  11. package/dist/src/comparison.equivalent.spec.d.ts.map +1 -0
  12. package/dist/src/comparison.equivalent.spec.js +130 -0
  13. package/dist/src/comparison.equivalent.spec.js.map +1 -0
  14. package/dist/src/comparison.js +93 -20
  15. package/dist/src/comparison.js.map +1 -1
  16. package/dist/src/compile/builtins/array.d.ts +2 -1
  17. package/dist/src/compile/builtins/array.d.ts.map +1 -1
  18. package/dist/src/compile/builtins/array.js +35 -0
  19. package/dist/src/compile/builtins/array.js.map +1 -1
  20. package/dist/src/compile/builtins/dict.d.ts +1 -0
  21. package/dist/src/compile/builtins/dict.d.ts.map +1 -1
  22. package/dist/src/compile/builtins/dict.js +25 -0
  23. package/dist/src/compile/builtins/dict.js.map +1 -1
  24. package/dist/src/compile/builtins/set.d.ts +1 -0
  25. package/dist/src/compile/builtins/set.d.ts.map +1 -1
  26. package/dist/src/compile/builtins/set.js +25 -0
  27. package/dist/src/compile/builtins/set.js.map +1 -1
  28. package/dist/src/compile/builtins/tree.d.ts +32 -0
  29. package/dist/src/compile/builtins/tree.d.ts.map +1 -0
  30. package/dist/src/compile/builtins/tree.js +108 -0
  31. package/dist/src/compile/builtins/tree.js.map +1 -0
  32. package/dist/src/compile/functions.d.ts.map +1 -1
  33. package/dist/src/compile/functions.js +4 -4
  34. package/dist/src/compile/functions.js.map +1 -1
  35. package/dist/src/compile/runtime.d.ts +12 -15
  36. package/dist/src/compile/runtime.d.ts.map +1 -1
  37. package/dist/src/compile/runtime.js +19 -16
  38. package/dist/src/compile/runtime.js.map +1 -1
  39. package/dist/src/compile.signature.spec.d.ts +6 -0
  40. package/dist/src/compile.signature.spec.d.ts.map +1 -0
  41. package/dist/src/compile.signature.spec.js +53 -0
  42. package/dist/src/compile.signature.spec.js.map +1 -0
  43. package/dist/src/expr/array.d.ts +158 -81
  44. package/dist/src/expr/array.d.ts.map +1 -1
  45. package/dist/src/expr/array.js +68 -51
  46. package/dist/src/expr/array.js.map +1 -1
  47. package/dist/src/expr/ast.d.ts.map +1 -1
  48. package/dist/src/expr/ast.js +13 -0
  49. package/dist/src/expr/ast.js.map +1 -1
  50. package/dist/src/expr/blob.d.ts +8 -8
  51. package/dist/src/expr/blob.js +8 -8
  52. package/dist/src/expr/block.d.ts +18 -5
  53. package/dist/src/expr/block.d.ts.map +1 -1
  54. package/dist/src/expr/block.js +19 -0
  55. package/dist/src/expr/block.js.map +1 -1
  56. package/dist/src/expr/boolean.d.ts +10 -10
  57. package/dist/src/expr/boolean.js +10 -10
  58. package/dist/src/expr/datetime.d.ts +28 -28
  59. package/dist/src/expr/datetime.js +28 -28
  60. package/dist/src/expr/dict.d.ts +101 -51
  61. package/dist/src/expr/dict.d.ts.map +1 -1
  62. package/dist/src/expr/dict.js +97 -36
  63. package/dist/src/expr/dict.js.map +1 -1
  64. package/dist/src/expr/float.d.ts +23 -23
  65. package/dist/src/expr/float.js +23 -23
  66. package/dist/src/expr/integer.d.ts +17 -17
  67. package/dist/src/expr/integer.js +11 -11
  68. package/dist/src/expr/libs/array.d.ts +6 -6
  69. package/dist/src/expr/libs/array.js +6 -6
  70. package/dist/src/expr/libs/blob.d.ts +2 -2
  71. package/dist/src/expr/libs/blob.js +2 -2
  72. package/dist/src/expr/libs/datetime.d.ts +25 -25
  73. package/dist/src/expr/libs/datetime.js +25 -25
  74. package/dist/src/expr/libs/dict.d.ts +2 -2
  75. package/dist/src/expr/libs/dict.js +2 -2
  76. package/dist/src/expr/libs/float.d.ts +15 -15
  77. package/dist/src/expr/libs/float.js +15 -15
  78. package/dist/src/expr/libs/integer.d.ts +12 -12
  79. package/dist/src/expr/libs/integer.js +12 -12
  80. package/dist/src/expr/libs/set.d.ts +2 -2
  81. package/dist/src/expr/libs/set.js +2 -2
  82. package/dist/src/expr/libs/string.d.ts +4 -4
  83. package/dist/src/expr/libs/string.js +4 -4
  84. package/dist/src/expr/recursive.d.ts +22 -5
  85. package/dist/src/expr/recursive.d.ts.map +1 -1
  86. package/dist/src/expr/recursive.js +22 -5
  87. package/dist/src/expr/recursive.js.map +1 -1
  88. package/dist/src/expr/ref.d.ts +5 -5
  89. package/dist/src/expr/ref.js +5 -5
  90. package/dist/src/expr/set.d.ts +96 -51
  91. package/dist/src/expr/set.d.ts.map +1 -1
  92. package/dist/src/expr/set.js +85 -29
  93. package/dist/src/expr/set.js.map +1 -1
  94. package/dist/src/expr/string.d.ts +28 -28
  95. package/dist/src/expr/string.js +28 -28
  96. package/dist/src/expr/struct.d.ts.map +1 -1
  97. package/dist/src/expr/struct.js +2 -2
  98. package/dist/src/expr/variant.d.ts +12 -12
  99. package/dist/src/expr/variant.js +7 -7
  100. package/dist/src/function_symbols.d.ts +28 -0
  101. package/dist/src/function_symbols.d.ts.map +1 -0
  102. package/dist/src/function_symbols.js +28 -0
  103. package/dist/src/function_symbols.js.map +1 -0
  104. package/dist/src/location.d.ts +32 -0
  105. package/dist/src/location.d.ts.map +1 -1
  106. package/dist/src/location.js +38 -0
  107. package/dist/src/location.js.map +1 -1
  108. package/dist/src/location.spec.js +89 -1
  109. package/dist/src/location.spec.js.map +1 -1
  110. package/dist/src/runner_protocol.d.ts +46 -5
  111. package/dist/src/runner_protocol.d.ts.map +1 -1
  112. package/dist/src/runner_protocol.js +24 -5
  113. package/dist/src/runner_protocol.js.map +1 -1
  114. package/dist/src/serialization/beast2/index.d.ts +1 -0
  115. package/dist/src/serialization/beast2/index.d.ts.map +1 -1
  116. package/dist/src/serialization/beast2/index.js +1 -0
  117. package/dist/src/serialization/beast2/index.js.map +1 -1
  118. package/dist/src/serialization/beast2/v5/canonical.d.ts +101 -0
  119. package/dist/src/serialization/beast2/v5/canonical.d.ts.map +1 -0
  120. package/dist/src/serialization/beast2/v5/canonical.js +436 -0
  121. package/dist/src/serialization/beast2/v5/canonical.js.map +1 -0
  122. package/dist/src/serialization/beast2/v5/canonical.spec.d.ts +6 -0
  123. package/dist/src/serialization/beast2/v5/canonical.spec.d.ts.map +1 -0
  124. package/dist/src/serialization/beast2/v5/canonical.spec.js +124 -0
  125. package/dist/src/serialization/beast2/v5/canonical.spec.js.map +1 -0
  126. package/dist/src/serialization/beast2/v5/elements.d.ts +3 -1
  127. package/dist/src/serialization/beast2/v5/elements.d.ts.map +1 -1
  128. package/dist/src/serialization/beast2/v5/elements.js +7 -2
  129. package/dist/src/serialization/beast2/v5/elements.js.map +1 -1
  130. package/dist/src/serialization/beast2/v5/elements.spec.js +1 -1
  131. package/dist/src/serialization/beast2/v5/elements.spec.js.map +1 -1
  132. package/dist/src/serialization/beast2/v5/intake.d.ts +98 -0
  133. package/dist/src/serialization/beast2/v5/intake.d.ts.map +1 -0
  134. package/dist/src/serialization/beast2/v5/intake.js +462 -0
  135. package/dist/src/serialization/beast2/v5/intake.js.map +1 -0
  136. package/dist/src/serialization/beast2/v5/intake.spec.d.ts +6 -0
  137. package/dist/src/serialization/beast2/v5/intake.spec.d.ts.map +1 -0
  138. package/dist/src/serialization/beast2/v5/intake.spec.js +202 -0
  139. package/dist/src/serialization/beast2/v5/intake.spec.js.map +1 -0
  140. package/dist/src/serialization/index.d.ts +1 -1
  141. package/dist/src/serialization/index.d.ts.map +1 -1
  142. package/dist/src/serialization/index.js +1 -1
  143. package/dist/src/serialization/index.js.map +1 -1
  144. package/package.json +1 -1
@@ -54,7 +54,7 @@ export declare class StringExpr extends Expr<StringType> {
54
54
  * const parseInteger = East.function([StringType], IntegerType, ($, text) => {
55
55
  * $.return(text.parse(IntegerType));
56
56
  * });
57
- * const compiled = East.compile(parseInteger.toIR(), []);
57
+ * const compiled = East.compile(parseInteger, []);
58
58
  * compiled("42"); // 42n
59
59
  * compiled("-100"); // -100n
60
60
  * // compiled("3.14") would throw error (not an integer format)
@@ -74,7 +74,7 @@ export declare class StringExpr extends Expr<StringType> {
74
74
  * const parseJsonArray = East.function([StringType], ArrayType(IntegerType), ($, json) => {
75
75
  * $.return(json.parseJson(ArrayType(IntegerType)));
76
76
  * });
77
- * const compiled = East.compile(parseJsonArray.toIR(), []);
77
+ * const compiled = East.compile(parseJsonArray, []);
78
78
  * compiled("[1, 2, 3]"); // [1n, 2n, 3n]
79
79
  * compiled("[]"); // []
80
80
  * // compiled("{\"a\": 1}") would throw error (not an array)
@@ -92,7 +92,7 @@ export declare class StringExpr extends Expr<StringType> {
92
92
  * const joinStrings = East.function([StringType, StringType], StringType, ($, a, b) => {
93
93
  * $.return(a.concat(b));
94
94
  * });
95
- * const compiled = East.compile(joinStrings.toIR(), []);
95
+ * const compiled = East.compile(joinStrings, []);
96
96
  * compiled("Hello, ", "World!"); // "Hello, World!"
97
97
  * compiled("foo", "bar"); // "foobar"
98
98
  * compiled("", "test"); // "test"
@@ -110,7 +110,7 @@ export declare class StringExpr extends Expr<StringType> {
110
110
  * const repeatString = East.function([StringType, IntegerType], StringType, ($, str, n) => {
111
111
  * $.return(str.repeat(n));
112
112
  * });
113
- * const compiled = East.compile(repeatString.toIR(), []);
113
+ * const compiled = East.compile(repeatString, []);
114
114
  * compiled("abc", 3n); // "abcabcabc"
115
115
  * compiled("x", 5n); // "xxxxx"
116
116
  * compiled("test", 0n); // ""
@@ -128,7 +128,7 @@ export declare class StringExpr extends Expr<StringType> {
128
128
  * const getLength = East.function([StringType], IntegerType, ($, str) => {
129
129
  * $.return(str.length());
130
130
  * });
131
- * const compiled = East.compile(getLength.toIR(), []);
131
+ * const compiled = East.compile(getLength, []);
132
132
  * compiled("hello"); // 5n
133
133
  * compiled(""); // 0n
134
134
  * compiled("😀🎉"); // 2n (2 emoji code points)
@@ -149,7 +149,7 @@ export declare class StringExpr extends Expr<StringType> {
149
149
  * const substr = East.function([StringType, IntegerType, IntegerType], StringType, ($, str, start, end) => {
150
150
  * $.return(str.substring(start, end));
151
151
  * });
152
- * const compiled = East.compile(substr.toIR(), []);
152
+ * const compiled = East.compile(substr, []);
153
153
  * compiled("hello world", 0n, 5n); // "hello"
154
154
  * compiled("hello world", 6n, 11n); // "world"
155
155
  * compiled("test", 1n, 3n); // "es"
@@ -166,7 +166,7 @@ export declare class StringExpr extends Expr<StringType> {
166
166
  * const toUpper = East.function([StringType], StringType, ($, str) => {
167
167
  * $.return(str.upperCase());
168
168
  * });
169
- * const compiled = East.compile(toUpper.toIR(), []);
169
+ * const compiled = East.compile(toUpper, []);
170
170
  * compiled("hello"); // "HELLO"
171
171
  * compiled("Hello World"); // "HELLO WORLD"
172
172
  * compiled("test123"); // "TEST123"
@@ -183,7 +183,7 @@ export declare class StringExpr extends Expr<StringType> {
183
183
  * const toLower = East.function([StringType], StringType, ($, str) => {
184
184
  * $.return(str.lowerCase());
185
185
  * });
186
- * const compiled = East.compile(toLower.toIR(), []);
186
+ * const compiled = East.compile(toLower, []);
187
187
  * compiled("HELLO"); // "hello"
188
188
  * compiled("Hello World"); // "hello world"
189
189
  * compiled("TEST123"); // "test123"
@@ -201,7 +201,7 @@ export declare class StringExpr extends Expr<StringType> {
201
201
  * const splitString = East.function([StringType, StringType], ArrayType(StringType), ($, str, delim) => {
202
202
  * $.return(str.split(delim));
203
203
  * });
204
- * const compiled = East.compile(splitString.toIR(), []);
204
+ * const compiled = East.compile(splitString, []);
205
205
  * compiled("a,b,c", ","); // ["a", "b", "c"]
206
206
  * compiled("hello world", " "); // ["hello", "world"]
207
207
  * compiled("one", ","); // ["one"]
@@ -219,7 +219,7 @@ export declare class StringExpr extends Expr<StringType> {
219
219
  * const trimString = East.function([StringType], StringType, ($, str) => {
220
220
  * $.return(str.trim());
221
221
  * });
222
- * const compiled = East.compile(trimString.toIR(), []);
222
+ * const compiled = East.compile(trimString, []);
223
223
  * compiled(" hello "); // "hello"
224
224
  * compiled("test\n"); // "test"
225
225
  * compiled(" "); // ""
@@ -237,7 +237,7 @@ export declare class StringExpr extends Expr<StringType> {
237
237
  * const trimLeft = East.function([StringType], StringType, ($, str) => {
238
238
  * $.return(str.trimStart());
239
239
  * });
240
- * const compiled = East.compile(trimLeft.toIR(), []);
240
+ * const compiled = East.compile(trimLeft, []);
241
241
  * compiled(" hello"); // "hello"
242
242
  * compiled("\ttest"); // "test"
243
243
  * compiled(" hello "); // "hello "
@@ -254,7 +254,7 @@ export declare class StringExpr extends Expr<StringType> {
254
254
  * const trimRight = East.function([StringType], StringType, ($, str) => {
255
255
  * $.return(str.trimEnd());
256
256
  * });
257
- * const compiled = East.compile(trimRight.toIR(), []);
257
+ * const compiled = East.compile(trimRight, []);
258
258
  * compiled("hello "); // "hello"
259
259
  * compiled("test\n"); // "test"
260
260
  * compiled(" hello "); // " hello"
@@ -272,7 +272,7 @@ export declare class StringExpr extends Expr<StringType> {
272
272
  * const checkPrefix = East.function([StringType, StringType], BooleanType, ($, str, prefix) => {
273
273
  * $.return(str.startsWith(prefix));
274
274
  * });
275
- * const compiled = East.compile(checkPrefix.toIR(), []);
275
+ * const compiled = East.compile(checkPrefix, []);
276
276
  * compiled("hello world", "hello"); // true
277
277
  * compiled("test", "te"); // true
278
278
  * compiled("hello", "world"); // false
@@ -291,7 +291,7 @@ export declare class StringExpr extends Expr<StringType> {
291
291
  * const checkSuffix = East.function([StringType, StringType], BooleanType, ($, str, suffix) => {
292
292
  * $.return(str.endsWith(suffix));
293
293
  * });
294
- * const compiled = East.compile(checkSuffix.toIR(), []);
294
+ * const compiled = East.compile(checkSuffix, []);
295
295
  * compiled("hello world", "world"); // true
296
296
  * compiled("test", "st"); // true
297
297
  * compiled("hello", "world"); // false
@@ -310,7 +310,7 @@ export declare class StringExpr extends Expr<StringType> {
310
310
  * const hasSubstring = East.function([StringType, StringType], BooleanType, ($, str, substr) => {
311
311
  * $.return(str.contains(substr));
312
312
  * });
313
- * const compiled = East.compile(hasSubstring.toIR(), []);
313
+ * const compiled = East.compile(hasSubstring, []);
314
314
  * compiled("hello world", "world"); // true
315
315
  * compiled("test", "xyz"); // false
316
316
  *
@@ -318,7 +318,7 @@ export declare class StringExpr extends Expr<StringType> {
318
318
  * const hasDigits = East.function([StringType], BooleanType, ($, str) => {
319
319
  * $.return(str.contains(/\d+/));
320
320
  * });
321
- * compiled = East.compile(hasDigits.toIR(), []);
321
+ * compiled = East.compile(hasDigits, []);
322
322
  * compiled("test123"); // true
323
323
  * compiled("test"); // false
324
324
  * ```
@@ -335,7 +335,7 @@ export declare class StringExpr extends Expr<StringType> {
335
335
  * const findIndex = East.function([StringType, StringType], IntegerType, ($, str, substr) => {
336
336
  * $.return(str.indexOf(substr));
337
337
  * });
338
- * const compiled = East.compile(findIndex.toIR(), []);
338
+ * const compiled = East.compile(findIndex, []);
339
339
  * compiled("hello world", "world"); // 6n
340
340
  * compiled("test", "t"); // 0n
341
341
  * compiled("hello", "xyz"); // -1n
@@ -344,7 +344,7 @@ export declare class StringExpr extends Expr<StringType> {
344
344
  * const findDigit = East.function([StringType], IntegerType, ($, str) => {
345
345
  * $.return(str.indexOf(/\d/));
346
346
  * });
347
- * compiled = East.compile(findDigit.toIR(), []);
347
+ * compiled = East.compile(findDigit, []);
348
348
  * compiled("abc123"); // 3n
349
349
  * ```
350
350
  */
@@ -361,7 +361,7 @@ export declare class StringExpr extends Expr<StringType> {
361
361
  * const replaceAll = East.function([StringType, StringType, StringType], StringType, ($, str, search, replace) => {
362
362
  * $.return(str.replace(search, replace));
363
363
  * });
364
- * const compiled = East.compile(replaceAll.toIR(), []);
364
+ * const compiled = East.compile(replaceAll, []);
365
365
  * compiled("hello hello", "hello", "hi"); // "hi hi"
366
366
  * compiled("test_test_value", "test", "prod"); // "prod_prod_value"
367
367
  *
@@ -369,7 +369,7 @@ export declare class StringExpr extends Expr<StringType> {
369
369
  * const swapWords = East.function([StringType], StringType, ($, str) => {
370
370
  * $.return(str.replace(/(\w+) (\w+)/, "$2 $1"));
371
371
  * });
372
- * compiled = East.compile(swapWords.toIR(), []);
372
+ * compiled = East.compile(swapWords, []);
373
373
  * compiled("hello world"); // "world hello"
374
374
  * ```
375
375
  */
@@ -386,7 +386,7 @@ export declare class StringExpr extends Expr<StringType> {
386
386
  * const encodeUtf8 = East.function([StringType], BlobType, ($, str) => {
387
387
  * $.return(str.encodeUtf8());
388
388
  * });
389
- * const compiled = East.compile(encodeUtf8.toIR(), []);
389
+ * const compiled = East.compile(encodeUtf8, []);
390
390
  * compiled("hello"); // Blob with UTF-8 bytes
391
391
  * compiled("😀"); // Blob with UTF-8 encoded emoji
392
392
  * ```
@@ -404,7 +404,7 @@ export declare class StringExpr extends Expr<StringType> {
404
404
  * const encodeUtf16 = East.function([StringType], BlobType, ($, str) => {
405
405
  * $.return(str.encodeUtf16());
406
406
  * });
407
- * const compiled = East.compile(encodeUtf16.toIR(), []);
407
+ * const compiled = East.compile(encodeUtf16, []);
408
408
  * compiled("hello"); // Blob with UTF-16 LE bytes + BOM
409
409
  * compiled("😀"); // Blob with UTF-16 encoded emoji
410
410
  * ```
@@ -421,7 +421,7 @@ export declare class StringExpr extends Expr<StringType> {
421
421
  * const isEqual = East.function([StringType, StringType], BooleanType, ($, a, b) => {
422
422
  * $.return(a.equals(b));
423
423
  * });
424
- * const compiled = East.compile(isEqual.toIR(), []);
424
+ * const compiled = East.compile(isEqual, []);
425
425
  * compiled("hello", "hello"); // true
426
426
  * compiled("hello", "world"); // false
427
427
  * ```
@@ -438,7 +438,7 @@ export declare class StringExpr extends Expr<StringType> {
438
438
  * const isNotEqual = East.function([StringType, StringType], BooleanType, ($, a, b) => {
439
439
  * $.return(a.notEquals(b));
440
440
  * });
441
- * const compiled = East.compile(isNotEqual.toIR(), []);
441
+ * const compiled = East.compile(isNotEqual, []);
442
442
  * compiled("hello", "world"); // true
443
443
  * compiled("hello", "hello"); // false
444
444
  * ```
@@ -455,7 +455,7 @@ export declare class StringExpr extends Expr<StringType> {
455
455
  * const isGreater = East.function([StringType, StringType], BooleanType, ($, a, b) => {
456
456
  * $.return(a.greaterThan(b));
457
457
  * });
458
- * const compiled = East.compile(isGreater.toIR(), []);
458
+ * const compiled = East.compile(isGreater, []);
459
459
  * compiled("b", "a"); // true
460
460
  * compiled("a", "b"); // false
461
461
  * compiled("a", "a"); // false
@@ -473,7 +473,7 @@ export declare class StringExpr extends Expr<StringType> {
473
473
  * const isLess = East.function([StringType, StringType], BooleanType, ($, a, b) => {
474
474
  * $.return(a.lessThan(b));
475
475
  * });
476
- * const compiled = East.compile(isLess.toIR(), []);
476
+ * const compiled = East.compile(isLess, []);
477
477
  * compiled("a", "b"); // true
478
478
  * compiled("b", "a"); // false
479
479
  * compiled("a", "a"); // false
@@ -491,7 +491,7 @@ export declare class StringExpr extends Expr<StringType> {
491
491
  * const isGreaterOrEqual = East.function([StringType, StringType], BooleanType, ($, a, b) => {
492
492
  * $.return(a.greaterThanOrEqual(b));
493
493
  * });
494
- * const compiled = East.compile(isGreaterOrEqual.toIR(), []);
494
+ * const compiled = East.compile(isGreaterOrEqual, []);
495
495
  * compiled("b", "a"); // true
496
496
  * compiled("a", "a"); // true
497
497
  * compiled("a", "b"); // false
@@ -509,7 +509,7 @@ export declare class StringExpr extends Expr<StringType> {
509
509
  * const isLessOrEqual = East.function([StringType, StringType], BooleanType, ($, a, b) => {
510
510
  * $.return(a.lessThanOrEqual(b));
511
511
  * });
512
- * const compiled = East.compile(isLessOrEqual.toIR(), []);
512
+ * const compiled = East.compile(isLessOrEqual, []);
513
513
  * compiled("a", "b"); // true
514
514
  * compiled("a", "a"); // true
515
515
  * compiled("b", "a"); // false
@@ -51,7 +51,7 @@ export class StringExpr extends Expr {
51
51
  * const parseInteger = East.function([StringType], IntegerType, ($, text) => {
52
52
  * $.return(text.parse(IntegerType));
53
53
  * });
54
- * const compiled = East.compile(parseInteger.toIR(), []);
54
+ * const compiled = East.compile(parseInteger, []);
55
55
  * compiled("42"); // 42n
56
56
  * compiled("-100"); // -100n
57
57
  * // compiled("3.14") would throw error (not an integer format)
@@ -83,7 +83,7 @@ export class StringExpr extends Expr {
83
83
  * const parseJsonArray = East.function([StringType], ArrayType(IntegerType), ($, json) => {
84
84
  * $.return(json.parseJson(ArrayType(IntegerType)));
85
85
  * });
86
- * const compiled = East.compile(parseJsonArray.toIR(), []);
86
+ * const compiled = East.compile(parseJsonArray, []);
87
87
  * compiled("[1, 2, 3]"); // [1n, 2n, 3n]
88
88
  * compiled("[]"); // []
89
89
  * // compiled("{\"a\": 1}") would throw error (not an array)
@@ -110,7 +110,7 @@ export class StringExpr extends Expr {
110
110
  * const joinStrings = East.function([StringType, StringType], StringType, ($, a, b) => {
111
111
  * $.return(a.concat(b));
112
112
  * });
113
- * const compiled = East.compile(joinStrings.toIR(), []);
113
+ * const compiled = East.compile(joinStrings, []);
114
114
  * compiled("Hello, ", "World!"); // "Hello, World!"
115
115
  * compiled("foo", "bar"); // "foobar"
116
116
  * compiled("", "test"); // "test"
@@ -138,7 +138,7 @@ export class StringExpr extends Expr {
138
138
  * const repeatString = East.function([StringType, IntegerType], StringType, ($, str, n) => {
139
139
  * $.return(str.repeat(n));
140
140
  * });
141
- * const compiled = East.compile(repeatString.toIR(), []);
141
+ * const compiled = East.compile(repeatString, []);
142
142
  * compiled("abc", 3n); // "abcabcabc"
143
143
  * compiled("x", 5n); // "xxxxx"
144
144
  * compiled("test", 0n); // ""
@@ -166,7 +166,7 @@ export class StringExpr extends Expr {
166
166
  * const getLength = East.function([StringType], IntegerType, ($, str) => {
167
167
  * $.return(str.length());
168
168
  * });
169
- * const compiled = East.compile(getLength.toIR(), []);
169
+ * const compiled = East.compile(getLength, []);
170
170
  * compiled("hello"); // 5n
171
171
  * compiled(""); // 0n
172
172
  * compiled("😀🎉"); // 2n (2 emoji code points)
@@ -196,7 +196,7 @@ export class StringExpr extends Expr {
196
196
  * const substr = East.function([StringType, IntegerType, IntegerType], StringType, ($, str, start, end) => {
197
197
  * $.return(str.substring(start, end));
198
198
  * });
199
- * const compiled = East.compile(substr.toIR(), []);
199
+ * const compiled = East.compile(substr, []);
200
200
  * compiled("hello world", 0n, 5n); // "hello"
201
201
  * compiled("hello world", 6n, 11n); // "world"
202
202
  * compiled("test", 1n, 3n); // "es"
@@ -224,7 +224,7 @@ export class StringExpr extends Expr {
224
224
  * const toUpper = East.function([StringType], StringType, ($, str) => {
225
225
  * $.return(str.upperCase());
226
226
  * });
227
- * const compiled = East.compile(toUpper.toIR(), []);
227
+ * const compiled = East.compile(toUpper, []);
228
228
  * compiled("hello"); // "HELLO"
229
229
  * compiled("Hello World"); // "HELLO WORLD"
230
230
  * compiled("test123"); // "TEST123"
@@ -250,7 +250,7 @@ export class StringExpr extends Expr {
250
250
  * const toLower = East.function([StringType], StringType, ($, str) => {
251
251
  * $.return(str.lowerCase());
252
252
  * });
253
- * const compiled = East.compile(toLower.toIR(), []);
253
+ * const compiled = East.compile(toLower, []);
254
254
  * compiled("HELLO"); // "hello"
255
255
  * compiled("Hello World"); // "hello world"
256
256
  * compiled("TEST123"); // "test123"
@@ -277,7 +277,7 @@ export class StringExpr extends Expr {
277
277
  * const splitString = East.function([StringType, StringType], ArrayType(StringType), ($, str, delim) => {
278
278
  * $.return(str.split(delim));
279
279
  * });
280
- * const compiled = East.compile(splitString.toIR(), []);
280
+ * const compiled = East.compile(splitString, []);
281
281
  * compiled("a,b,c", ","); // ["a", "b", "c"]
282
282
  * compiled("hello world", " "); // ["hello", "world"]
283
283
  * compiled("one", ","); // ["one"]
@@ -305,7 +305,7 @@ export class StringExpr extends Expr {
305
305
  * const trimString = East.function([StringType], StringType, ($, str) => {
306
306
  * $.return(str.trim());
307
307
  * });
308
- * const compiled = East.compile(trimString.toIR(), []);
308
+ * const compiled = East.compile(trimString, []);
309
309
  * compiled(" hello "); // "hello"
310
310
  * compiled("test\n"); // "test"
311
311
  * compiled(" "); // ""
@@ -332,7 +332,7 @@ export class StringExpr extends Expr {
332
332
  * const trimLeft = East.function([StringType], StringType, ($, str) => {
333
333
  * $.return(str.trimStart());
334
334
  * });
335
- * const compiled = East.compile(trimLeft.toIR(), []);
335
+ * const compiled = East.compile(trimLeft, []);
336
336
  * compiled(" hello"); // "hello"
337
337
  * compiled("\ttest"); // "test"
338
338
  * compiled(" hello "); // "hello "
@@ -358,7 +358,7 @@ export class StringExpr extends Expr {
358
358
  * const trimRight = East.function([StringType], StringType, ($, str) => {
359
359
  * $.return(str.trimEnd());
360
360
  * });
361
- * const compiled = East.compile(trimRight.toIR(), []);
361
+ * const compiled = East.compile(trimRight, []);
362
362
  * compiled("hello "); // "hello"
363
363
  * compiled("test\n"); // "test"
364
364
  * compiled(" hello "); // " hello"
@@ -385,7 +385,7 @@ export class StringExpr extends Expr {
385
385
  * const checkPrefix = East.function([StringType, StringType], BooleanType, ($, str, prefix) => {
386
386
  * $.return(str.startsWith(prefix));
387
387
  * });
388
- * const compiled = East.compile(checkPrefix.toIR(), []);
388
+ * const compiled = East.compile(checkPrefix, []);
389
389
  * compiled("hello world", "hello"); // true
390
390
  * compiled("test", "te"); // true
391
391
  * compiled("hello", "world"); // false
@@ -414,7 +414,7 @@ export class StringExpr extends Expr {
414
414
  * const checkSuffix = East.function([StringType, StringType], BooleanType, ($, str, suffix) => {
415
415
  * $.return(str.endsWith(suffix));
416
416
  * });
417
- * const compiled = East.compile(checkSuffix.toIR(), []);
417
+ * const compiled = East.compile(checkSuffix, []);
418
418
  * compiled("hello world", "world"); // true
419
419
  * compiled("test", "st"); // true
420
420
  * compiled("hello", "world"); // false
@@ -443,7 +443,7 @@ export class StringExpr extends Expr {
443
443
  * const hasSubstring = East.function([StringType, StringType], BooleanType, ($, str, substr) => {
444
444
  * $.return(str.contains(substr));
445
445
  * });
446
- * const compiled = East.compile(hasSubstring.toIR(), []);
446
+ * const compiled = East.compile(hasSubstring, []);
447
447
  * compiled("hello world", "world"); // true
448
448
  * compiled("test", "xyz"); // false
449
449
  *
@@ -451,7 +451,7 @@ export class StringExpr extends Expr {
451
451
  * const hasDigits = East.function([StringType], BooleanType, ($, str) => {
452
452
  * $.return(str.contains(/\d+/));
453
453
  * });
454
- * compiled = East.compile(hasDigits.toIR(), []);
454
+ * compiled = East.compile(hasDigits, []);
455
455
  * compiled("test123"); // true
456
456
  * compiled("test"); // false
457
457
  * ```
@@ -506,7 +506,7 @@ export class StringExpr extends Expr {
506
506
  * const findIndex = East.function([StringType, StringType], IntegerType, ($, str, substr) => {
507
507
  * $.return(str.indexOf(substr));
508
508
  * });
509
- * const compiled = East.compile(findIndex.toIR(), []);
509
+ * const compiled = East.compile(findIndex, []);
510
510
  * compiled("hello world", "world"); // 6n
511
511
  * compiled("test", "t"); // 0n
512
512
  * compiled("hello", "xyz"); // -1n
@@ -515,7 +515,7 @@ export class StringExpr extends Expr {
515
515
  * const findDigit = East.function([StringType], IntegerType, ($, str) => {
516
516
  * $.return(str.indexOf(/\d/));
517
517
  * });
518
- * compiled = East.compile(findDigit.toIR(), []);
518
+ * compiled = East.compile(findDigit, []);
519
519
  * compiled("abc123"); // 3n
520
520
  * ```
521
521
  */
@@ -570,7 +570,7 @@ export class StringExpr extends Expr {
570
570
  * const replaceAll = East.function([StringType, StringType, StringType], StringType, ($, str, search, replace) => {
571
571
  * $.return(str.replace(search, replace));
572
572
  * });
573
- * const compiled = East.compile(replaceAll.toIR(), []);
573
+ * const compiled = East.compile(replaceAll, []);
574
574
  * compiled("hello hello", "hello", "hi"); // "hi hi"
575
575
  * compiled("test_test_value", "test", "prod"); // "prod_prod_value"
576
576
  *
@@ -578,7 +578,7 @@ export class StringExpr extends Expr {
578
578
  * const swapWords = East.function([StringType], StringType, ($, str) => {
579
579
  * $.return(str.replace(/(\w+) (\w+)/, "$2 $1"));
580
580
  * });
581
- * compiled = East.compile(swapWords.toIR(), []);
581
+ * compiled = East.compile(swapWords, []);
582
582
  * compiled("hello world"); // "world hello"
583
583
  * ```
584
584
  */
@@ -638,7 +638,7 @@ export class StringExpr extends Expr {
638
638
  * const encodeUtf8 = East.function([StringType], BlobType, ($, str) => {
639
639
  * $.return(str.encodeUtf8());
640
640
  * });
641
- * const compiled = East.compile(encodeUtf8.toIR(), []);
641
+ * const compiled = East.compile(encodeUtf8, []);
642
642
  * compiled("hello"); // Blob with UTF-8 bytes
643
643
  * compiled("😀"); // Blob with UTF-8 encoded emoji
644
644
  * ```
@@ -665,7 +665,7 @@ export class StringExpr extends Expr {
665
665
  * const encodeUtf16 = East.function([StringType], BlobType, ($, str) => {
666
666
  * $.return(str.encodeUtf16());
667
667
  * });
668
- * const compiled = East.compile(encodeUtf16.toIR(), []);
668
+ * const compiled = East.compile(encodeUtf16, []);
669
669
  * compiled("hello"); // Blob with UTF-16 LE bytes + BOM
670
670
  * compiled("😀"); // Blob with UTF-16 encoded emoji
671
671
  * ```
@@ -691,7 +691,7 @@ export class StringExpr extends Expr {
691
691
  * const isEqual = East.function([StringType, StringType], BooleanType, ($, a, b) => {
692
692
  * $.return(a.equals(b));
693
693
  * });
694
- * const compiled = East.compile(isEqual.toIR(), []);
694
+ * const compiled = East.compile(isEqual, []);
695
695
  * compiled("hello", "hello"); // true
696
696
  * compiled("hello", "world"); // false
697
697
  * ```
@@ -710,7 +710,7 @@ export class StringExpr extends Expr {
710
710
  * const isNotEqual = East.function([StringType, StringType], BooleanType, ($, a, b) => {
711
711
  * $.return(a.notEquals(b));
712
712
  * });
713
- * const compiled = East.compile(isNotEqual.toIR(), []);
713
+ * const compiled = East.compile(isNotEqual, []);
714
714
  * compiled("hello", "world"); // true
715
715
  * compiled("hello", "hello"); // false
716
716
  * ```
@@ -729,7 +729,7 @@ export class StringExpr extends Expr {
729
729
  * const isGreater = East.function([StringType, StringType], BooleanType, ($, a, b) => {
730
730
  * $.return(a.greaterThan(b));
731
731
  * });
732
- * const compiled = East.compile(isGreater.toIR(), []);
732
+ * const compiled = East.compile(isGreater, []);
733
733
  * compiled("b", "a"); // true
734
734
  * compiled("a", "b"); // false
735
735
  * compiled("a", "a"); // false
@@ -749,7 +749,7 @@ export class StringExpr extends Expr {
749
749
  * const isLess = East.function([StringType, StringType], BooleanType, ($, a, b) => {
750
750
  * $.return(a.lessThan(b));
751
751
  * });
752
- * const compiled = East.compile(isLess.toIR(), []);
752
+ * const compiled = East.compile(isLess, []);
753
753
  * compiled("a", "b"); // true
754
754
  * compiled("b", "a"); // false
755
755
  * compiled("a", "a"); // false
@@ -769,7 +769,7 @@ export class StringExpr extends Expr {
769
769
  * const isGreaterOrEqual = East.function([StringType, StringType], BooleanType, ($, a, b) => {
770
770
  * $.return(a.greaterThanOrEqual(b));
771
771
  * });
772
- * const compiled = East.compile(isGreaterOrEqual.toIR(), []);
772
+ * const compiled = East.compile(isGreaterOrEqual, []);
773
773
  * compiled("b", "a"); // true
774
774
  * compiled("a", "a"); // true
775
775
  * compiled("a", "b"); // false
@@ -789,7 +789,7 @@ export class StringExpr extends Expr {
789
789
  * const isLessOrEqual = East.function([StringType, StringType], BooleanType, ($, a, b) => {
790
790
  * $.return(a.lessThanOrEqual(b));
791
791
  * });
792
- * const compiled = East.compile(isLessOrEqual.toIR(), []);
792
+ * const compiled = East.compile(isLessOrEqual, []);
793
793
  * compiled("a", "b"); // true
794
794
  * compiled("a", "a"); // true
795
795
  * compiled("b", "a"); // false
@@ -1 +1 @@
1
- {"version":3,"file":"struct.d.ts","sourceRoot":"","sources":["../../../src/expr/struct.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAEL,SAAS,EACT,IAAI,EACJ,aAAa,EAEb,UAAU,EACV,KAAK,MAAM,EACZ,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AA4D3C,eAAO,MAAM,UAAU;SApBc,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAC5C,MAAM,OAAO,GAAG,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;sHAqBg1D,GAAI;uHAAoS,GAAI;2HAAsd,GAAI;4HAA8S,GAAI;;;;;;;;;;;;;CAF/5F,CAAC;AACtC,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG;KAAG,GAAG,IAAI,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;CAAE,CAAC"}
1
+ {"version":3,"file":"struct.d.ts","sourceRoot":"","sources":["../../../src/expr/struct.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAEL,SAAS,EACT,IAAI,EACJ,aAAa,EAEb,UAAU,EACV,KAAK,MAAM,EACZ,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AA4D3C,eAAO,MAAM,UAAU;SApBc,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,eAC5C,MAAM,OAAO,GAAG,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;sHAqB81D,GAAI;uHAAoS,GAAI;2HAAsd,GAAI;4HAA8S,GAAI;;;;;;;;;;;;;CAF76F,CAAC;AACtC,MAAM,MAAM,UAAU,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG;KAAG,GAAG,IAAI,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;CAAE,CAAC"}
@@ -29,7 +29,7 @@ TypeSymbol } from "./expr.js";
29
29
  * // Access fields with dot notation
30
30
  * $.return(Expr.str`Hello, ${person.name}! You are ${person.age} years old.`);
31
31
  * });
32
- * const compiled = East.compile(greet.toIR(), []);
32
+ * const compiled = East.compile(greet, []);
33
33
  * compiled({ name: "Alice", age: 30n }); // "Hello, Alice! You are 30 years old."
34
34
  * ```
35
35
  *
@@ -39,7 +39,7 @@ TypeSymbol } from "./expr.js";
39
39
  * const birthday = East.function([PersonType], PersonType, ($, person) => {
40
40
  * $.return({ ...person, age: person.age.add(1n) });
41
41
  * });
42
- * const compiled = East.compile(birthday.toIR(), []);
42
+ * const compiled = East.compile(birthday, []);
43
43
  * compiled({ name: "Bob", age: 25n }); // { name: "Bob", age: 26n }
44
44
  * ```
45
45
  */
@@ -33,7 +33,7 @@ import type { BooleanExpr } from "./boolean.js";
33
33
  * none: ($, _) => defaultVal
34
34
  * }));
35
35
  * });
36
- * const compiled = East.compile(getOrDefault.toIR(), []);
36
+ * const compiled = East.compile(getOrDefault, []);
37
37
  * compiled(Expr.variant("some", 42n), 0n); // 42n
38
38
  * compiled(Expr.variant("none", null), 0n); // 0n
39
39
  * ```
@@ -44,7 +44,7 @@ import type { BooleanExpr } from "./boolean.js";
44
44
  * const checkSome = East.function([OptionType], BooleanType, ($, opt) => {
45
45
  * $.return(opt.hasTag("some"));
46
46
  * });
47
- * const compiled = East.compile(checkSome.toIR(), []);
47
+ * const compiled = East.compile(checkSome, []);
48
48
  * compiled(Expr.variant("some", 42n)); // true
49
49
  * compiled(Expr.variant("none", null)); // false
50
50
  * ```
@@ -64,7 +64,7 @@ export declare class VariantExpr<Cases extends Record<string, any>> extends Expr
64
64
  * const getTag = East.function([ResultType], StringType, ($, result) => {
65
65
  * $.return(result.getTag());
66
66
  * });
67
- * const compiled = East.compile(getTag.toIR(), []);
67
+ * const compiled = East.compile(getTag, []);
68
68
  * compiled(Expr.variant("ok", 42n)); // "ok"
69
69
  * compiled(Expr.variant("error", "fail")); // "error"
70
70
  * ```
@@ -86,7 +86,7 @@ export declare class VariantExpr<Cases extends Record<string, any>> extends Expr
86
86
  * const isSome = East.function([OptionType], BooleanType, ($, opt) => {
87
87
  * $.return(opt.hasTag("some"));
88
88
  * });
89
- * const compiled = East.compile(isSome.toIR(), []);
89
+ * const compiled = East.compile(isSome, []);
90
90
  * compiled(Expr.variant("some", 42n)); // true
91
91
  * compiled(Expr.variant("none", null)); // false
92
92
  * ```
@@ -115,7 +115,7 @@ export declare class VariantExpr<Cases extends Record<string, any>> extends Expr
115
115
  * const getOrDefault = East.function([OptionType], IntegerType, ($, opt) => {
116
116
  * $.return(opt.unwrap("some", () => -1n)); // Return -1n if none
117
117
  * });
118
- * const compiled = East.compile(getOrDefault.toIR(), []);
118
+ * const compiled = East.compile(getOrDefault, []);
119
119
  * compiled(Expr.variant("some", 42n)); // 42n
120
120
  * compiled(Expr.variant("none", null)); // -1n
121
121
  * ```
@@ -126,7 +126,7 @@ export declare class VariantExpr<Cases extends Record<string, any>> extends Expr
126
126
  * const unsafeUnwrap = East.function([OptionType], IntegerType, ($, opt) => {
127
127
  * $.return(opt.unwrap("some")); // Throws error if none
128
128
  * });
129
- * const compiled = East.compile(unsafeUnwrap.toIR(), []);
129
+ * const compiled = East.compile(unsafeUnwrap, []);
130
130
  * compiled(Expr.variant("some", 42n)); // 42n
131
131
  * // compiled(Expr.variant("none", null)) would throw error
132
132
  * ```
@@ -161,7 +161,7 @@ export declare class VariantExpr<Cases extends Record<string, any>> extends Expr
161
161
  * none: ($) => 0n
162
162
  * }));
163
163
  * });
164
- * const compiled = East.compile(getValue.toIR(), []);
164
+ * const compiled = East.compile(getValue, []);
165
165
  * compiled(Expr.variant("some", 42n)); // 42n
166
166
  * compiled(Expr.variant("none", null)); // 0n
167
167
  * ```
@@ -176,7 +176,7 @@ export declare class VariantExpr<Cases extends Record<string, any>> extends Expr
176
176
  * some: ($, val) => val
177
177
  * }, ($) => 0n));
178
178
  * });
179
- * const compiled = East.compile(getOrZero.toIR(), []);
179
+ * const compiled = East.compile(getOrZero, []);
180
180
  * compiled(Expr.variant("some", 42n)); // 42n
181
181
  * compiled(Expr.variant("none", null)); // 0n
182
182
  * ```
@@ -192,7 +192,7 @@ export declare class VariantExpr<Cases extends Record<string, any>> extends Expr
192
192
  * error: ($, _msg) => -1n
193
193
  * }, ($) => 0n)); // pending -> 0
194
194
  * });
195
- * const compiled = East.compile(handleResult.toIR(), []);
195
+ * const compiled = East.compile(handleResult, []);
196
196
  * compiled(Expr.variant("ok", 100n)); // 100n
197
197
  * compiled(Expr.variant("error", "fail")); // -1n
198
198
  * compiled(Expr.variant("pending", null)); // 0n
@@ -230,7 +230,7 @@ export declare class VariantExpr<Cases extends Record<string, any>> extends Expr
230
230
  * const doubleOrZero = East.function([OptionType], IntegerType, ($, opt) => {
231
231
  * $.return(opt.matchTag("some", ($, val) => val.multiply(2n), ($) => 0n));
232
232
  * });
233
- * const compiled = East.compile(doubleOrZero.toIR(), []);
233
+ * const compiled = East.compile(doubleOrZero, []);
234
234
  * compiled(Expr.variant("some", 42n)); // 84n
235
235
  * compiled(Expr.variant("none", null)); // 0n
236
236
  * ```
@@ -249,7 +249,7 @@ export declare class VariantExpr<Cases extends Record<string, any>> extends Expr
249
249
  * const isEqual = East.function([OptionType, OptionType], BooleanType, ($, a, b) => {
250
250
  * $.return(a.equals(b));
251
251
  * });
252
- * const compiled = East.compile(isEqual.toIR(), []);
252
+ * const compiled = East.compile(isEqual, []);
253
253
  * compiled(variant("some", 42n), variant("some", 42n)); // true
254
254
  * compiled(variant("some", 42n), variant("some", 0n)); // false
255
255
  * compiled(variant("some", 42n), variant("none", null)); // false
@@ -269,7 +269,7 @@ export declare class VariantExpr<Cases extends Record<string, any>> extends Expr
269
269
  * const isNotEqual = East.function([OptionType, OptionType], BooleanType, ($, a, b) => {
270
270
  * $.return(a.notEquals(b));
271
271
  * });
272
- * const compiled = East.compile(isNotEqual.toIR(), []);
272
+ * const compiled = East.compile(isNotEqual, []);
273
273
  * compiled(variant("some", 42n), variant("some", 0n)); // true
274
274
  * compiled(variant("some", 42n), variant("some", 42n)); // false
275
275
  * ```