effect 3.13.9 → 3.13.11

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 (119) hide show
  1. package/dist/cjs/Arbitrary.js +38 -22
  2. package/dist/cjs/Arbitrary.js.map +1 -1
  3. package/dist/cjs/Array.js +50 -50
  4. package/dist/cjs/Array.js.map +1 -1
  5. package/dist/cjs/Brand.js +9 -4
  6. package/dist/cjs/Brand.js.map +1 -1
  7. package/dist/cjs/Cause.js +1 -0
  8. package/dist/cjs/Cause.js.map +1 -1
  9. package/dist/cjs/Chunk.js +25 -23
  10. package/dist/cjs/Chunk.js.map +1 -1
  11. package/dist/cjs/Config.js +2 -1
  12. package/dist/cjs/Config.js.map +1 -1
  13. package/dist/cjs/Context.js +4 -4
  14. package/dist/cjs/Effect.js +823 -632
  15. package/dist/cjs/Effect.js.map +1 -1
  16. package/dist/cjs/Either.js +12 -12
  17. package/dist/cjs/Either.js.map +1 -1
  18. package/dist/cjs/LogLevel.js +1 -1
  19. package/dist/cjs/Logger.js +12 -12
  20. package/dist/cjs/Match.js +26 -26
  21. package/dist/cjs/Option.js +43 -43
  22. package/dist/cjs/Predicate.js +6 -2
  23. package/dist/cjs/Predicate.js.map +1 -1
  24. package/dist/cjs/Schema.js +21 -17
  25. package/dist/cjs/Schema.js.map +1 -1
  26. package/dist/cjs/SchemaAST.js +49 -25
  27. package/dist/cjs/SchemaAST.js.map +1 -1
  28. package/dist/cjs/Scope.js +2 -0
  29. package/dist/cjs/Scope.js.map +1 -1
  30. package/dist/cjs/Stream.js +93 -93
  31. package/dist/cjs/internal/core.js +1 -1
  32. package/dist/cjs/internal/core.js.map +1 -1
  33. package/dist/cjs/internal/schema/util.js +23 -14
  34. package/dist/cjs/internal/schema/util.js.map +1 -1
  35. package/dist/cjs/internal/version.js +1 -1
  36. package/dist/cjs/internal/version.js.map +1 -1
  37. package/dist/dts/Array.d.ts +47 -47
  38. package/dist/dts/Array.d.ts.map +1 -1
  39. package/dist/dts/Brand.d.ts +14 -6
  40. package/dist/dts/Brand.d.ts.map +1 -1
  41. package/dist/dts/Cause.d.ts +1 -0
  42. package/dist/dts/Cause.d.ts.map +1 -1
  43. package/dist/dts/Chunk.d.ts +91 -89
  44. package/dist/dts/Chunk.d.ts.map +1 -1
  45. package/dist/dts/Config.d.ts +2 -1
  46. package/dist/dts/Config.d.ts.map +1 -1
  47. package/dist/dts/Context.d.ts +4 -4
  48. package/dist/dts/Effect.d.ts +2107 -1621
  49. package/dist/dts/Effect.d.ts.map +1 -1
  50. package/dist/dts/Either.d.ts +33 -33
  51. package/dist/dts/LogLevel.d.ts +3 -3
  52. package/dist/dts/Logger.d.ts +16 -16
  53. package/dist/dts/Match.d.ts +26 -26
  54. package/dist/dts/Option.d.ts +84 -84
  55. package/dist/dts/Predicate.d.ts.map +1 -1
  56. package/dist/dts/Schema.d.ts +53 -21
  57. package/dist/dts/Schema.d.ts.map +1 -1
  58. package/dist/dts/SchemaAST.d.ts.map +1 -1
  59. package/dist/dts/Scope.d.ts +2 -0
  60. package/dist/dts/Scope.d.ts.map +1 -1
  61. package/dist/dts/Stream.d.ts +229 -229
  62. package/dist/esm/Arbitrary.js +38 -22
  63. package/dist/esm/Arbitrary.js.map +1 -1
  64. package/dist/esm/Array.js +50 -50
  65. package/dist/esm/Array.js.map +1 -1
  66. package/dist/esm/Brand.js +9 -4
  67. package/dist/esm/Brand.js.map +1 -1
  68. package/dist/esm/Cause.js +1 -0
  69. package/dist/esm/Cause.js.map +1 -1
  70. package/dist/esm/Chunk.js +25 -23
  71. package/dist/esm/Chunk.js.map +1 -1
  72. package/dist/esm/Config.js +2 -1
  73. package/dist/esm/Config.js.map +1 -1
  74. package/dist/esm/Context.js +4 -4
  75. package/dist/esm/Effect.js +845 -648
  76. package/dist/esm/Effect.js.map +1 -1
  77. package/dist/esm/Either.js +17 -17
  78. package/dist/esm/Either.js.map +1 -1
  79. package/dist/esm/LogLevel.js +1 -1
  80. package/dist/esm/Logger.js +12 -12
  81. package/dist/esm/Match.js +26 -26
  82. package/dist/esm/Option.js +48 -48
  83. package/dist/esm/Predicate.js +3 -0
  84. package/dist/esm/Predicate.js.map +1 -1
  85. package/dist/esm/Schema.js +21 -17
  86. package/dist/esm/Schema.js.map +1 -1
  87. package/dist/esm/SchemaAST.js +46 -22
  88. package/dist/esm/SchemaAST.js.map +1 -1
  89. package/dist/esm/Scope.js +2 -0
  90. package/dist/esm/Scope.js.map +1 -1
  91. package/dist/esm/Stream.js +101 -101
  92. package/dist/esm/internal/core.js +1 -1
  93. package/dist/esm/internal/core.js.map +1 -1
  94. package/dist/esm/internal/schema/util.js +23 -14
  95. package/dist/esm/internal/schema/util.js.map +1 -1
  96. package/dist/esm/internal/version.js +1 -1
  97. package/dist/esm/internal/version.js.map +1 -1
  98. package/package.json +1 -1
  99. package/src/Arbitrary.ts +39 -24
  100. package/src/Array.ts +116 -113
  101. package/src/Brand.ts +14 -6
  102. package/src/Cause.ts +1 -0
  103. package/src/Chunk.ts +97 -95
  104. package/src/Config.ts +2 -1
  105. package/src/Context.ts +4 -4
  106. package/src/Effect.ts +2107 -1621
  107. package/src/Either.ts +34 -34
  108. package/src/LogLevel.ts +3 -3
  109. package/src/Logger.ts +16 -16
  110. package/src/Match.ts +26 -26
  111. package/src/Option.ts +84 -84
  112. package/src/Predicate.ts +4 -0
  113. package/src/Schema.ts +87 -41
  114. package/src/SchemaAST.ts +47 -22
  115. package/src/Scope.ts +2 -0
  116. package/src/Stream.ts +229 -229
  117. package/src/internal/core.ts +2 -1
  118. package/src/internal/schema/util.ts +34 -25
  119. package/src/internal/version.ts +1 -1
@@ -62,7 +62,7 @@ const accumulateChunks = exports.accumulateChunks = internal.accumulateChunks;
62
62
  * (file) => file.close
63
63
  * ).pipe(Stream.flatMap((file) => file.getLines))
64
64
  *
65
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
65
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
66
66
  * // Opening file.txt
67
67
  * // Closing file.txt
68
68
  * // { _id: 'Chunk', values: [ [ 'Line 1', 'Line 2', 'Line 3' ] ] }
@@ -121,7 +121,7 @@ const aggregateWithinEither = exports.aggregateWithinEither = internal.aggregate
121
121
  *
122
122
  * const stream = Stream.range(1, 5).pipe(Stream.as(null))
123
123
  *
124
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
124
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
125
125
  * // { _id: 'Chunk', values: [ null, null, null, null, null ] }
126
126
  * ```
127
127
  *
@@ -227,7 +227,7 @@ const branchAfter = exports.branchAfter = internal.branchAfter;
227
227
  * )
228
228
  * )
229
229
  *
230
- * // Effect.runPromise(numbers).then(console.log)
230
+ * Effect.runPromise(numbers).then(console.log)
231
231
  * // Emit 1 element before broadcasting
232
232
  * // Emit 2 element before broadcasting
233
233
  * // Emit 3 element before broadcasting
@@ -335,7 +335,7 @@ const broadcastedQueuesDynamic = exports.broadcastedQueuesDynamic = internal.bro
335
335
  * Stream.schedule(Schedule.spaced("5 seconds"))
336
336
  * )
337
337
  *
338
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
338
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
339
339
  * // before buffering: 1
340
340
  * // before buffering: 2
341
341
  * // before buffering: 3
@@ -428,7 +428,7 @@ const catchSomeCause = exports.catchSomeCause = internal.catchSomeCause;
428
428
  *
429
429
  * const stream = Stream.make(1, 1, 1, 2, 2, 3, 4).pipe(Stream.changes)
430
430
  *
431
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
431
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
432
432
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4 ] }
433
433
  * ```
434
434
  *
@@ -509,7 +509,7 @@ const combineChunks = exports.combineChunks = internal.combineChunks;
509
509
  *
510
510
  * const stream = Stream.concat(s1, s2)
511
511
  *
512
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
512
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
513
513
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
514
514
  * ```
515
515
  *
@@ -530,7 +530,7 @@ const concat = exports.concat = internal.concat;
530
530
  *
531
531
  * const stream = Stream.concatAll(Chunk.make(s1, s2, s3))
532
532
  *
533
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
533
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
534
534
  * // {
535
535
  * // _id: 'Chunk',
536
536
  * // values: [
@@ -560,7 +560,7 @@ const concatAll = exports.concatAll = internal.concatAll;
560
560
  *
561
561
  * const product = Stream.cross(s1, s2)
562
562
  *
563
- * // Effect.runPromise(Stream.runCollect(product)).then(console.log)
563
+ * Effect.runPromise(Stream.runCollect(product)).then(console.log)
564
564
  * // {
565
565
  * // _id: "Chunk",
566
566
  * // values: [
@@ -644,7 +644,7 @@ const crossWith = exports.crossWith = internal.crossWith;
644
644
  * Stream.tap((n) => log(`> Emitted ${n}`))
645
645
  * )
646
646
  *
647
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
647
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
648
648
  * // Received 1 after 5ms
649
649
  * // Received 2 after 2ms
650
650
  * // Received 3 after 0ms
@@ -716,7 +716,7 @@ const distributedWithDynamic = exports.distributedWithDynamic = internal.distrib
716
716
  * // We create a stream and immediately drain it.
717
717
  * const stream = Stream.range(1, 6).pipe(Stream.drain)
718
718
  *
719
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
719
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
720
720
  * // { _id: 'Chunk', values: [] }
721
721
  * ```
722
722
  *
@@ -801,7 +801,7 @@ const either = exports.either = internal.either;
801
801
  *
802
802
  * const stream = Stream.empty
803
803
  *
804
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
804
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
805
805
  * // { _id: 'Chunk', values: [] }
806
806
  * ```
807
807
  *
@@ -823,7 +823,7 @@ const empty = exports.empty = internal.empty;
823
823
  * )
824
824
  * )
825
825
  *
826
- * // Effect.runPromise(Stream.runCollect(program)).then(console.log)
826
+ * Effect.runPromise(Stream.runCollect(program)).then(console.log)
827
827
  * // Application Logic.
828
828
  * // Finalizing the stream
829
829
  * // Doing some other works after stream's finalization
@@ -927,7 +927,7 @@ const failCauseSync = exports.failCauseSync = internal.failCauseSync;
927
927
  *
928
928
  * const stream = Stream.range(1, 11).pipe(Stream.filter((n) => n % 2 === 0))
929
929
  *
930
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
930
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
931
931
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8, 10 ] }
932
932
  * ```
933
933
  *
@@ -994,7 +994,7 @@ const filterMapWhileEffect = exports.filterMapWhileEffect = internal.filterMapWh
994
994
  * )
995
995
  * )
996
996
  *
997
- * // Effect.runPromise(Stream.runCollect(program)).then(console.log)
997
+ * Effect.runPromise(Stream.runCollect(program)).then(console.log)
998
998
  * // Application Logic.
999
999
  * // Deleting dir: tmp
1000
1000
  * // Temporary directory was deleted.
@@ -1100,7 +1100,7 @@ const forever = exports.forever = internal.forever;
1100
1100
  * (e) => new Error(String(e)) // Error Handling
1101
1101
  * )
1102
1102
  *
1103
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1103
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1104
1104
  * // { _id: 'Chunk', values: [ 1, 2 ] }
1105
1105
  * ```
1106
1106
  *
@@ -1132,7 +1132,7 @@ const toChannel = exports.toChannel = internal.toChannel;
1132
1132
  * // Creating a stream with values from a single Chunk
1133
1133
  * const stream = Stream.fromChunk(Chunk.make(1, 2, 3))
1134
1134
  *
1135
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1135
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1136
1136
  * // { _id: 'Chunk', values: [ 1, 2, 3 ] }
1137
1137
  * ```
1138
1138
  *
@@ -1172,7 +1172,7 @@ const fromChunkQueue = exports.fromChunkQueue = internal.fromChunkQueue;
1172
1172
  * // Creating a stream with values from multiple Chunks
1173
1173
  * const stream = Stream.fromChunks(Chunk.make(1, 2, 3), Chunk.make(4, 5, 6))
1174
1174
  *
1175
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1175
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1176
1176
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6 ] }
1177
1177
  * ```
1178
1178
  *
@@ -1190,7 +1190,7 @@ const fromChunks = exports.fromChunks = internal.fromChunks;
1190
1190
  *
1191
1191
  * const stream = Stream.fromEffect(Random.nextInt)
1192
1192
  *
1193
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1193
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1194
1194
  * // Example Output: { _id: 'Chunk', values: [ 922694024 ] }
1195
1195
  * ```
1196
1196
  *
@@ -1235,7 +1235,7 @@ const fromTPubSub = exports.fromTPubSub = internal.fromTPubSub;
1235
1235
  *
1236
1236
  * const stream = Stream.fromIterable(numbers)
1237
1237
  *
1238
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1238
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1239
1239
  * // { _id: 'Chunk', values: [ 1, 2, 3 ] }
1240
1240
  * ```
1241
1241
  *
@@ -1259,9 +1259,9 @@ const fromIterable = exports.fromIterable = internal.fromIterable;
1259
1259
  *
1260
1260
  * const stream = Stream.fromIterableEffect(getUsers)
1261
1261
  *
1262
- * // Effect.runPromise(
1263
- * // Stream.runCollect(stream.pipe(Stream.provideService(Database, { getUsers: Effect.succeed(["user1", "user2"]) })))
1264
- * // ).then(console.log)
1262
+ * Effect.runPromise(
1263
+ * Stream.runCollect(stream.pipe(Stream.provideService(Database, { getUsers: Effect.succeed(["user1", "user2"]) })))
1264
+ * ).then(console.log)
1265
1265
  * // { _id: 'Chunk', values: [ 'user1', 'user2' ] }
1266
1266
  * ```
1267
1267
  *
@@ -1338,7 +1338,7 @@ const fromReadableStreamByob = exports.fromReadableStreamByob = internal.fromRea
1338
1338
  *
1339
1339
  * const stream = Stream.fromSchedule(schedule)
1340
1340
  *
1341
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1341
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1342
1342
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
1343
1343
  * ```
1344
1344
  *
@@ -1381,7 +1381,7 @@ const groupAdjacentBy = exports.groupAdjacentBy = internal.groupAdjacentBy;
1381
1381
  * )
1382
1382
  * ))
1383
1383
  *
1384
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1384
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1385
1385
  * // {
1386
1386
  * // _id: 'Chunk',
1387
1387
  * // values: [ [ 'M', 1 ], [ 'J', 3 ], [ 'R', 2 ], [ 'P', 2 ] ]
@@ -1437,7 +1437,7 @@ const groupByKey = exports.groupByKey = groupBy_.groupByKey;
1437
1437
  *
1438
1438
  * const stream = Stream.range(0, 8).pipe(Stream.grouped(3))
1439
1439
  *
1440
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log("%o", chunks))
1440
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log("%o", chunks))
1441
1441
  * // {
1442
1442
  * // _id: 'Chunk',
1443
1443
  * // values: [
@@ -1467,7 +1467,7 @@ const grouped = exports.grouped = internal.grouped;
1467
1467
  * Stream.take(3)
1468
1468
  * )
1469
1469
  *
1470
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log(Chunk.toArray(chunks)))
1470
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log(Chunk.toArray(chunks)))
1471
1471
  * // [
1472
1472
  * // {
1473
1473
  * // _id: 'Chunk',
@@ -1556,7 +1556,7 @@ const identity = exports.identity = internal.identityStream;
1556
1556
  *
1557
1557
  * const stream = Stream.interleave(s1, s2)
1558
1558
  *
1559
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1559
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1560
1560
  * // { _id: 'Chunk', values: [ 1, 4, 2, 5, 3, 6 ] }
1561
1561
  * ```
1562
1562
  * @since 2.0.0
@@ -1583,7 +1583,7 @@ const interleave = exports.interleave = internal.interleave;
1583
1583
  *
1584
1584
  * const stream = Stream.interleaveWith(s1, s2, booleanStream)
1585
1585
  *
1586
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1586
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1587
1587
  * // {
1588
1588
  * // _id: 'Chunk',
1589
1589
  * // values: [
@@ -1606,7 +1606,7 @@ const interleaveWith = exports.interleaveWith = internal.interleaveWith;
1606
1606
  *
1607
1607
  * const stream = Stream.make(1, 2, 3, 4, 5).pipe(Stream.intersperse(0))
1608
1608
  *
1609
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1609
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1610
1610
  * // {
1611
1611
  * // _id: 'Chunk',
1612
1612
  * // values: [
@@ -1635,7 +1635,7 @@ const intersperse = exports.intersperse = internal.intersperse;
1635
1635
  * })
1636
1636
  * )
1637
1637
  *
1638
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1638
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1639
1639
  * // {
1640
1640
  * // _id: 'Chunk',
1641
1641
  * // values: [
@@ -1693,7 +1693,7 @@ const interruptWhenDeferred = exports.interruptWhenDeferred = internal.interrupt
1693
1693
  * // An infinite Stream of numbers starting from 1 and incrementing
1694
1694
  * const stream = Stream.iterate(1, (n) => n + 1)
1695
1695
  *
1696
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(10)))).then(console.log)
1696
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(10)))).then(console.log)
1697
1697
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }
1698
1698
  * ```
1699
1699
  *
@@ -1710,7 +1710,7 @@ const iterate = exports.iterate = internal.iterate;
1710
1710
  *
1711
1711
  * const stream = Stream.make(1, 2, 3)
1712
1712
  *
1713
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1713
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1714
1714
  * // { _id: 'Chunk', values: [ 1, 2, 3 ] }
1715
1715
  * ```
1716
1716
  *
@@ -1727,7 +1727,7 @@ const make = exports.make = internal.make;
1727
1727
  *
1728
1728
  * const stream = Stream.make(1, 2, 3).pipe(Stream.map((n) => n + 1))
1729
1729
  *
1730
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1730
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1731
1731
  * // { _id: 'Chunk', values: [ 2, 3, 4 ] }
1732
1732
  * ```
1733
1733
  *
@@ -1746,9 +1746,9 @@ const map = exports.map = internal.map;
1746
1746
  * stream.pipe(Stream.mapAccum(0, (s, a) => [s + a, s + a]))
1747
1747
  *
1748
1748
  * // input: 0, 1, 2, 3, 4, 5, 6
1749
- * // Effect.runPromise(Stream.runCollect(runningTotal(Stream.range(0, 6)))).then(
1750
- * // console.log
1751
- * // )
1749
+ * Effect.runPromise(Stream.runCollect(runningTotal(Stream.range(0, 6)))).then(
1750
+ * console.log
1751
+ * )
1752
1752
  * // { _id: "Chunk", values: [ 0, 1, 3, 6, 10, 15, 21 ] }
1753
1753
  * ```
1754
1754
  *
@@ -1799,7 +1799,7 @@ const mapChunksEffect = exports.mapChunksEffect = internal.mapChunksEffect;
1799
1799
  * Stream.map((s) => parseInt(s))
1800
1800
  * )
1801
1801
  *
1802
- * // Effect.runPromise(Stream.runCollect(numbers)).then(console.log)
1802
+ * Effect.runPromise(Stream.runCollect(numbers)).then(console.log)
1803
1803
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6 ] }
1804
1804
  * ```
1805
1805
  *
@@ -1842,7 +1842,7 @@ const mapConcatEffect = exports.mapConcatEffect = internal.mapConcatEffect;
1842
1842
  * Stream.mapEffect((n) => Random.nextIntBetween(0, n))
1843
1843
  * )
1844
1844
  *
1845
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1845
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1846
1846
  * // Example Output: { _id: 'Chunk', values: [ 7, 19, 8 ] }
1847
1847
  * ```
1848
1848
  *
@@ -1883,7 +1883,7 @@ const mapErrorCause = exports.mapErrorCause = internal.mapErrorCause;
1883
1883
  *
1884
1884
  * const stream = Stream.merge(s1, s2)
1885
1885
  *
1886
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1886
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1887
1887
  * // { _id: 'Chunk', values: [ 1, 4, 2, 3, 5, 6 ] }
1888
1888
  * ```
1889
1889
  *
@@ -1939,7 +1939,7 @@ const mergeWithTag = exports.mergeWithTag = internal.mergeWithTag;
1939
1939
  * onOther: (n) => Math.floor(n)
1940
1940
  * })
1941
1941
  *
1942
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1942
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1943
1943
  * // { _id: 'Chunk', values: [ 1, 4, 2, 3, 5, 6 ] }
1944
1944
  * ```
1945
1945
  *
@@ -2042,7 +2042,7 @@ const onDone = exports.onDone = internal.onDone;
2042
2042
  * Stream.tap((n) => Console.log(`after mapping: ${n}`))
2043
2043
  * )
2044
2044
  *
2045
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2045
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2046
2046
  * // Stream started
2047
2047
  * // after mapping: 2
2048
2048
  * // after mapping: 4
@@ -2139,7 +2139,7 @@ const orElseSucceed = exports.orElseSucceed = internal.orElseSucceed;
2139
2139
  * n < 3 ? Option.some(n + 1) : Option.none()
2140
2140
  * ])
2141
2141
  *
2142
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2142
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2143
2143
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3 ] }
2144
2144
  * ```
2145
2145
  *
@@ -2186,12 +2186,9 @@ const paginateEffect = exports.paginateEffect = internal.paginateEffect;
2186
2186
  * The faster stream may advance up to `bufferSize` elements ahead of the slower
2187
2187
  * one.
2188
2188
  *
2189
- * @see {@link partitionEither} for partitioning a stream based on effectful
2190
- * conditions.
2189
+ * **Example** (Partitioning a Stream into Even and Odd Numbers)
2191
2190
  *
2192
- * @example
2193
2191
  * ```ts
2194
- * // Title: Partitioning a Stream into Even and Odd Numbers
2195
2192
  * import { Effect, Stream } from "effect"
2196
2193
  *
2197
2194
  * const partition = Stream.range(1, 9).pipe(
@@ -2206,11 +2203,14 @@ const paginateEffect = exports.paginateEffect = internal.paginateEffect;
2206
2203
  * })
2207
2204
  * )
2208
2205
  *
2209
- * // Effect.runPromise(program)
2206
+ * Effect.runPromise(program)
2210
2207
  * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
2211
2208
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
2212
2209
  * ```
2213
2210
  *
2211
+ * @see {@link partitionEither} for partitioning a stream based on effectful
2212
+ * conditions.
2213
+ *
2214
2214
  * @since 2.0.0
2215
2215
  * @category utils
2216
2216
  */
@@ -2229,11 +2229,9 @@ const partition = exports.partition = internal.partition;
2229
2229
  * The faster stream may advance up to `bufferSize` elements ahead of the slower
2230
2230
  * one.
2231
2231
  *
2232
- * @see {@link partition} for partitioning a stream based on simple conditions.
2232
+ * **Example** (Partitioning a Stream with an Effectful Predicate)
2233
2233
  *
2234
- * @example
2235
2234
  * ```ts
2236
- * // Title: Partitioning a Stream with an Effectful Predicate
2237
2235
  * import { Effect, Either, Stream } from "effect"
2238
2236
  *
2239
2237
  * const partition = Stream.range(1, 9).pipe(
@@ -2251,11 +2249,13 @@ const partition = exports.partition = internal.partition;
2251
2249
  * })
2252
2250
  * )
2253
2251
  *
2254
- * // Effect.runPromise(program)
2252
+ * Effect.runPromise(program)
2255
2253
  * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
2256
2254
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
2257
2255
  * ```
2258
2256
  *
2257
+ * @see {@link partition} for partitioning a stream based on simple conditions.
2258
+ *
2259
2259
  * @since 2.0.0
2260
2260
  * @category utils
2261
2261
  */
@@ -2424,7 +2424,7 @@ const raceAll = exports.raceAll = internal.raceAll;
2424
2424
  * // A Stream with a range of numbers from 1 to 5
2425
2425
  * const stream = Stream.range(1, 5)
2426
2426
  *
2427
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2427
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2428
2428
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
2429
2429
  * ```
2430
2430
  *
@@ -2465,7 +2465,7 @@ const refineOrDieWith = exports.refineOrDieWith = internal.refineOrDieWith;
2465
2465
  *
2466
2466
  * const stream = Stream.repeat(Stream.succeed(1), Schedule.forever)
2467
2467
  *
2468
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
2468
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
2469
2469
  * // { _id: 'Chunk', values: [ 1, 1, 1, 1, 1 ] }
2470
2470
  * ```
2471
2471
  *
@@ -2483,7 +2483,7 @@ const repeat = exports.repeat = internal.repeat;
2483
2483
  *
2484
2484
  * const stream = Stream.repeatEffect(Random.nextInt)
2485
2485
  *
2486
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
2486
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
2487
2487
  * // Example Output: { _id: 'Chunk', values: [ 3891571149, 4239494205, 2352981603, 2339111046, 1488052210 ] }
2488
2488
  * ```
2489
2489
  *
@@ -2586,7 +2586,7 @@ const repeatElementsWith = exports.repeatElementsWith = internal.repeatElementsW
2586
2586
  *
2587
2587
  * const stream = Stream.repeatValue(0)
2588
2588
  *
2589
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
2589
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
2590
2590
  * // { _id: 'Chunk', values: [ 0, 0, 0, 0, 0 ] }
2591
2591
  * ```
2592
2592
  *
@@ -2836,7 +2836,7 @@ const runSum = exports.runSum = internal.runSum;
2836
2836
  *
2837
2837
  * const stream = Stream.range(1, 6).pipe(Stream.scan(0, (a, b) => a + b))
2838
2838
  *
2839
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2839
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2840
2840
  * // { _id: 'Chunk', values: [ 0, 1, 3, 6, 10, 15, 21 ] }
2841
2841
  * ```
2842
2842
  *
@@ -2905,7 +2905,7 @@ const scheduleWith = exports.scheduleWith = internal.scheduleWith;
2905
2905
  * Stream.flatMap(() => Console.log("use"))
2906
2906
  * )
2907
2907
  *
2908
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2908
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2909
2909
  * // acquire
2910
2910
  * // use
2911
2911
  * // release
@@ -3014,7 +3014,7 @@ const splitLines = exports.splitLines = internal.splitLines;
3014
3014
  * // A Stream with a single number
3015
3015
  * const stream = Stream.succeed(3)
3016
3016
  *
3017
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3017
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3018
3018
  * // { _id: 'Chunk', values: [ 3 ] }
3019
3019
  * ```
3020
3020
  *
@@ -3045,7 +3045,7 @@ const suspend = exports.suspend = internal.suspend;
3045
3045
  *
3046
3046
  * const stream = Stream.take(Stream.iterate(0, (n) => n + 1), 5)
3047
3047
  *
3048
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3048
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3049
3049
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
3050
3050
  * ```
3051
3051
  *
@@ -3062,7 +3062,7 @@ const take = exports.take = internal.take;
3062
3062
  *
3063
3063
  * const stream = Stream.takeRight(Stream.make(1, 2, 3, 4, 5, 6), 3)
3064
3064
  *
3065
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3065
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3066
3066
  * // { _id: 'Chunk', values: [ 4, 5, 6 ] }
3067
3067
  * ```
3068
3068
  *
@@ -3080,7 +3080,7 @@ const takeRight = exports.takeRight = internal.takeRight;
3080
3080
  *
3081
3081
  * const stream = Stream.takeUntil(Stream.iterate(0, (n) => n + 1), (n) => n === 4)
3082
3082
  *
3083
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3083
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3084
3084
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
3085
3085
  * ```
3086
3086
  *
@@ -3106,7 +3106,7 @@ const takeUntilEffect = exports.takeUntilEffect = internal.takeUntilEffect;
3106
3106
  *
3107
3107
  * const stream = Stream.takeWhile(Stream.iterate(0, (n) => n + 1), (n) => n < 5)
3108
3108
  *
3109
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3109
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3110
3110
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
3111
3111
  * ```
3112
3112
  *
@@ -3127,7 +3127,7 @@ const takeWhile = exports.takeWhile = internal.takeWhile;
3127
3127
  * Stream.tap((n) => Console.log(`after mapping: ${n}`))
3128
3128
  * )
3129
3129
  *
3130
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3130
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3131
3131
  * // before mapping: 1
3132
3132
  * // after mapping: 2
3133
3133
  * // before mapping: 2
@@ -3208,7 +3208,7 @@ const tapSink = exports.tapSink = internal.tapSink;
3208
3208
  * Stream.tap((n) => log(`> Emitted ${n}`))
3209
3209
  * )
3210
3210
  *
3211
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3211
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3212
3212
  * // Received 0 after 56ms
3213
3213
  * // > Emitted 0 after 0ms
3214
3214
  * // Received 1 after 52ms
@@ -3262,7 +3262,7 @@ const throttleEffect = exports.throttleEffect = internal.throttleEffect;
3262
3262
  *
3263
3263
  * const stream = Stream.tick("1 seconds").pipe(Stream.tap(() => log("tick")))
3264
3264
  *
3265
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
3265
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
3266
3266
  * // tick after 4ms
3267
3267
  * // tick after 1003ms
3268
3268
  * // tick after 1001ms
@@ -3338,7 +3338,7 @@ const toPubSub = exports.toPubSub = internal.toPubSub;
3338
3338
  * }
3339
3339
  * })
3340
3340
  *
3341
- * // Effect.runPromise(Effect.scoped(program)).then(console.log, console.error)
3341
+ * Effect.runPromise(Effect.scoped(program)).then(console.log, console.error)
3342
3342
  * // { _id: 'Chunk', values: [ 1, 2 ] }
3343
3343
  * // { _id: 'Chunk', values: [ 3, 4 ] }
3344
3344
  * // { _id: 'Chunk', values: [ 5 ] }
@@ -3415,7 +3415,7 @@ const transduce = exports.transduce = internal.transduce;
3415
3415
  *
3416
3416
  * const stream = Stream.unfold(1, (n) => Option.some([n, n + 1]))
3417
3417
  *
3418
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
3418
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
3419
3419
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
3420
3420
  * ```
3421
3421
  *
@@ -3451,7 +3451,7 @@ const unfoldChunkEffect = exports.unfoldChunkEffect = internal.unfoldChunkEffect
3451
3451
  * Effect.map((b) => (b ? Option.some([n, -n]) : Option.some([n, n])))
3452
3452
  * ))
3453
3453
  *
3454
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
3454
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
3455
3455
  * // { _id: 'Chunk', values: [ 1, -1, -1, -1, -1 ] }
3456
3456
  * ```
3457
3457
  *
@@ -3545,7 +3545,7 @@ const withSpan = exports.withSpan = internal.withSpan;
3545
3545
  * Stream.make("a", "b", "c")
3546
3546
  * )
3547
3547
  *
3548
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3548
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3549
3549
  * // { _id: 'Chunk', values: [ [ 1, 'a' ], [ 2, 'b' ], [ 3, 'c' ] ] }
3550
3550
  * ```
3551
3551
  *
@@ -3580,7 +3580,7 @@ const zipFlatten = exports.zipFlatten = internal.zipFlatten;
3580
3580
  * defaultOther: "x"
3581
3581
  * })
3582
3582
  *
3583
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3583
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3584
3584
  * // { _id: "Chunk", values: [ [ 1, "a" ], [ 2, "b" ], [ 3, "c" ], [ 4, "x" ], [ 5, "x" ], [ 6, "x" ] ] }
3585
3585
  * ```
3586
3586
  *
@@ -3686,7 +3686,7 @@ const zipAllSortedByKeyWith = exports.zipAllSortedByKeyWith = internal.zipAllSor
3686
3686
  * onBoth: (n, s) => [n - s.length, s]
3687
3687
  * })
3688
3688
  *
3689
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3689
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3690
3690
  * // { _id: "Chunk", values: [ [ 0, "a" ], [ 1, "b" ], [ 2, "c" ], [ 4, "x" ], [ 5, "x" ], [ 6, "x" ] ] }
3691
3691
  * ```
3692
3692
  *
@@ -3717,7 +3717,7 @@ const zipAllWith = exports.zipAllWith = internal.zipAllWith;
3717
3717
  *
3718
3718
  * const stream = Stream.zipLatest(s1, s2)
3719
3719
  *
3720
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3720
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3721
3721
  * // { _id: "Chunk", values: [ [ 1, "a" ], [ 1, "b" ], [ 2, "b" ], [ 2, "c" ], [ 2, "d" ], [ 3, "d" ] ] }
3722
3722
  * ```
3723
3723
  *
@@ -3743,7 +3743,7 @@ const zipLatest = exports.zipLatest = internal.zipLatest;
3743
3743
  * Stream.fromSchedule(Schedule.spaced('4 millis')),
3744
3744
  * ).pipe(Stream.take(6), Stream.tap(Console.log))
3745
3745
  *
3746
- * // Effect.runPromise(Stream.runDrain(stream))
3746
+ * Effect.runPromise(Stream.runDrain(stream))
3747
3747
  * // Output:
3748
3748
  * // [ 0, 0, 0 ]
3749
3749
  * // [ 1, 0, 0 ]
@@ -3808,7 +3808,7 @@ const zipRight = exports.zipRight = internal.zipRight;
3808
3808
  * (n, s) => [n - s.length, s]
3809
3809
  * )
3810
3810
  *
3811
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3811
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3812
3812
  * // { _id: 'Chunk', values: [ [ 0, 'a' ], [ 1, 'b' ], [ 2, 'c' ] ] }
3813
3813
  * ```
3814
3814
  *
@@ -3835,7 +3835,7 @@ const zipWithChunks = exports.zipWithChunks = internal.zipWithChunks;
3835
3835
  *
3836
3836
  * const stream = Stream.zipWithNext(Stream.make(1, 2, 3, 4))
3837
3837
  *
3838
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
3838
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
3839
3839
  * // [
3840
3840
  * // [ 1, { _id: 'Option', _tag: 'Some', value: 2 } ],
3841
3841
  * // [ 2, { _id: 'Option', _tag: 'Some', value: 3 } ],
@@ -3858,7 +3858,7 @@ const zipWithNext = exports.zipWithNext = internal.zipWithNext;
3858
3858
  *
3859
3859
  * const stream = Stream.zipWithPrevious(Stream.make(1, 2, 3, 4))
3860
3860
  *
3861
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
3861
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
3862
3862
  * // [
3863
3863
  * // [ { _id: 'Option', _tag: 'None' }, 1 ],
3864
3864
  * // [ { _id: 'Option', _tag: 'Some', value: 1 }, 2 ],
@@ -3880,7 +3880,7 @@ const zipWithPrevious = exports.zipWithPrevious = internal.zipWithPrevious;
3880
3880
  *
3881
3881
  * const stream = Stream.zipWithPreviousAndNext(Stream.make(1, 2, 3, 4))
3882
3882
  *
3883
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
3883
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
3884
3884
  * // [
3885
3885
  * // [
3886
3886
  * // { _id: 'Option', _tag: 'None' },
@@ -3920,7 +3920,7 @@ const zipWithPreviousAndNext = exports.zipWithPreviousAndNext = internal.zipWith
3920
3920
  *
3921
3921
  * const indexedStream = Stream.zipWithIndex(stream)
3922
3922
  *
3923
- * // Effect.runPromise(Stream.runCollect(indexedStream)).then(console.log)
3923
+ * Effect.runPromise(Stream.runCollect(indexedStream)).then(console.log)
3924
3924
  * // {
3925
3925
  * // _id: 'Chunk',
3926
3926
  * // values: [ [ 'Mary', 0 ], [ 'James', 1 ], [ 'Robert', 2 ], [ 'Patricia', 3 ] ]
@@ -3944,11 +3944,6 @@ const zipWithIndex = exports.zipWithIndex = internal.zipWithIndex;
3944
3944
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
3945
3945
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
3946
3946
  *
3947
- * @see {@link bindTo}
3948
- * @see {@link bind}
3949
- * @see {@link bindEffect}
3950
- * @see {@link let_ let}
3951
- *
3952
3947
  * @example
3953
3948
  * ```ts
3954
3949
  * import * as assert from "node:assert"
@@ -3963,6 +3958,11 @@ const zipWithIndex = exports.zipWithIndex = internal.zipWithIndex;
3963
3958
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
3964
3959
  * ```
3965
3960
  *
3961
+ * @see {@link bindTo}
3962
+ * @see {@link bind}
3963
+ * @see {@link bindEffect}
3964
+ * @see {@link let_ let}
3965
+ *
3966
3966
  * @category do notation
3967
3967
  * @since 2.0.0
3968
3968
  */
@@ -3977,11 +3977,6 @@ const Do = exports.Do = internal.Do;
3977
3977
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
3978
3978
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
3979
3979
  *
3980
- * @see {@link Do}
3981
- * @see {@link bindTo}
3982
- * @see {@link bindEffect}
3983
- * @see {@link let_ let}
3984
- *
3985
3980
  * @example
3986
3981
  * ```ts
3987
3982
  * import * as assert from "node:assert"
@@ -3996,6 +3991,11 @@ const Do = exports.Do = internal.Do;
3996
3991
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
3997
3992
  * ```
3998
3993
  *
3994
+ * @see {@link Do}
3995
+ * @see {@link bindTo}
3996
+ * @see {@link bindEffect}
3997
+ * @see {@link let_ let}
3998
+ *
3999
3999
  * @category do notation
4000
4000
  * @since 2.0.0
4001
4001
  */
@@ -4022,11 +4022,6 @@ const bindEffect = exports.bindEffect = groupBy_.bindEffect;
4022
4022
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
4023
4023
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
4024
4024
  *
4025
- * @see {@link Do}
4026
- * @see {@link bind}
4027
- * @see {@link bindEffect}
4028
- * @see {@link let_ let}
4029
- *
4030
4025
  * @example
4031
4026
  * ```ts
4032
4027
  * import * as assert from "node:assert"
@@ -4041,6 +4036,11 @@ const bindEffect = exports.bindEffect = groupBy_.bindEffect;
4041
4036
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
4042
4037
  * ```
4043
4038
  *
4039
+ * @see {@link Do}
4040
+ * @see {@link bind}
4041
+ * @see {@link bindEffect}
4042
+ * @see {@link let_ let}
4043
+ *
4044
4044
  * @category do notation
4045
4045
  * @since 2.0.0
4046
4046
  */