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
package/src/Stream.ts CHANGED
@@ -211,7 +211,7 @@ export const accumulateChunks: <A, E, R>(self: Stream<A, E, R>) => Stream<A, E,
211
211
  * (file) => file.close
212
212
  * ).pipe(Stream.flatMap((file) => file.getLines))
213
213
  *
214
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
214
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
215
215
  * // Opening file.txt
216
216
  * // Closing file.txt
217
217
  * // { _id: 'Chunk', values: [ [ 'Line 1', 'Line 2', 'Line 3' ] ] }
@@ -374,7 +374,7 @@ export const aggregateWithinEither: {
374
374
  *
375
375
  * const stream = Stream.range(1, 5).pipe(Stream.as(null))
376
376
  *
377
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
377
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
378
378
  * // { _id: 'Chunk', values: [ null, null, null, null, null ] }
379
379
  * ```
380
380
  *
@@ -391,7 +391,7 @@ export const as: {
391
391
  *
392
392
  * const stream = Stream.range(1, 5).pipe(Stream.as(null))
393
393
  *
394
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
394
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
395
395
  * // { _id: 'Chunk', values: [ null, null, null, null, null ] }
396
396
  * ```
397
397
  *
@@ -408,7 +408,7 @@ export const as: {
408
408
  *
409
409
  * const stream = Stream.range(1, 5).pipe(Stream.as(null))
410
410
  *
411
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
411
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
412
412
  * // { _id: 'Chunk', values: [ null, null, null, null, null ] }
413
413
  * ```
414
414
  *
@@ -456,7 +456,7 @@ export {
456
456
  * }
457
457
  * )
458
458
  *
459
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
459
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
460
460
  * // { _id: 'Chunk', values: [ 1, 2 ] }
461
461
  *
462
462
  * ```
@@ -608,7 +608,7 @@ export const branchAfter: {
608
608
  * )
609
609
  * )
610
610
  *
611
- * // Effect.runPromise(numbers).then(console.log)
611
+ * Effect.runPromise(numbers).then(console.log)
612
612
  * // Emit 1 element before broadcasting
613
613
  * // Emit 2 element before broadcasting
614
614
  * // Emit 3 element before broadcasting
@@ -690,7 +690,7 @@ export const broadcast: {
690
690
  * )
691
691
  * )
692
692
  *
693
- * // Effect.runPromise(numbers).then(console.log)
693
+ * Effect.runPromise(numbers).then(console.log)
694
694
  * // Emit 1 element before broadcasting
695
695
  * // Emit 2 element before broadcasting
696
696
  * // Emit 3 element before broadcasting
@@ -779,7 +779,7 @@ export const broadcast: {
779
779
  * )
780
780
  * )
781
781
  *
782
- * // Effect.runPromise(numbers).then(console.log)
782
+ * Effect.runPromise(numbers).then(console.log)
783
783
  * // Emit 1 element before broadcasting
784
784
  * // Emit 2 element before broadcasting
785
785
  * // Emit 3 element before broadcasting
@@ -1053,7 +1053,7 @@ export const broadcastedQueuesDynamic: {
1053
1053
  * Stream.schedule(Schedule.spaced("5 seconds"))
1054
1054
  * )
1055
1055
  *
1056
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1056
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1057
1057
  * // before buffering: 1
1058
1058
  * // before buffering: 2
1059
1059
  * // before buffering: 3
@@ -1095,7 +1095,7 @@ export const buffer: {
1095
1095
  * Stream.schedule(Schedule.spaced("5 seconds"))
1096
1096
  * )
1097
1097
  *
1098
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1098
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1099
1099
  * // before buffering: 1
1100
1100
  * // before buffering: 2
1101
1101
  * // before buffering: 3
@@ -1142,7 +1142,7 @@ export const buffer: {
1142
1142
  * Stream.schedule(Schedule.spaced("5 seconds"))
1143
1143
  * )
1144
1144
  *
1145
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1145
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1146
1146
  * // before buffering: 1
1147
1147
  * // before buffering: 2
1148
1148
  * // before buffering: 3
@@ -1429,7 +1429,7 @@ export const catchSomeCause: {
1429
1429
  *
1430
1430
  * const stream = Stream.make(1, 1, 1, 2, 2, 3, 4).pipe(Stream.changes)
1431
1431
  *
1432
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1432
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1433
1433
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4 ] }
1434
1434
  * ```
1435
1435
  *
@@ -1663,7 +1663,7 @@ export const combineChunks: {
1663
1663
  *
1664
1664
  * const stream = Stream.concat(s1, s2)
1665
1665
  *
1666
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1666
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1667
1667
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
1668
1668
  * ```
1669
1669
  *
@@ -1685,7 +1685,7 @@ export const concat: {
1685
1685
  *
1686
1686
  * const stream = Stream.concat(s1, s2)
1687
1687
  *
1688
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1688
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1689
1689
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
1690
1690
  * ```
1691
1691
  *
@@ -1707,7 +1707,7 @@ export const concat: {
1707
1707
  *
1708
1708
  * const stream = Stream.concat(s1, s2)
1709
1709
  *
1710
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1710
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1711
1711
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
1712
1712
  * ```
1713
1713
  *
@@ -1730,7 +1730,7 @@ export const concat: {
1730
1730
  *
1731
1731
  * const stream = Stream.concatAll(Chunk.make(s1, s2, s3))
1732
1732
  *
1733
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1733
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1734
1734
  * // {
1735
1735
  * // _id: 'Chunk',
1736
1736
  * // values: [
@@ -1761,7 +1761,7 @@ export const concatAll: <A, E, R>(streams: Chunk.Chunk<Stream<A, E, R>>) => Stre
1761
1761
  *
1762
1762
  * const product = Stream.cross(s1, s2)
1763
1763
  *
1764
- * // Effect.runPromise(Stream.runCollect(product)).then(console.log)
1764
+ * Effect.runPromise(Stream.runCollect(product)).then(console.log)
1765
1765
  * // {
1766
1766
  * // _id: "Chunk",
1767
1767
  * // values: [
@@ -1790,7 +1790,7 @@ export const cross: {
1790
1790
  *
1791
1791
  * const product = Stream.cross(s1, s2)
1792
1792
  *
1793
- * // Effect.runPromise(Stream.runCollect(product)).then(console.log)
1793
+ * Effect.runPromise(Stream.runCollect(product)).then(console.log)
1794
1794
  * // {
1795
1795
  * // _id: "Chunk",
1796
1796
  * // values: [
@@ -1819,7 +1819,7 @@ export const cross: {
1819
1819
  *
1820
1820
  * const product = Stream.cross(s1, s2)
1821
1821
  *
1822
- * // Effect.runPromise(Stream.runCollect(product)).then(console.log)
1822
+ * Effect.runPromise(Stream.runCollect(product)).then(console.log)
1823
1823
  * // {
1824
1824
  * // _id: "Chunk",
1825
1825
  * // values: [
@@ -1983,7 +1983,7 @@ export const crossWith: {
1983
1983
  * Stream.tap((n) => log(`> Emitted ${n}`))
1984
1984
  * )
1985
1985
  *
1986
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1986
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
1987
1987
  * // Received 1 after 5ms
1988
1988
  * // Received 2 after 2ms
1989
1989
  * // Received 3 after 0ms
@@ -2039,7 +2039,7 @@ export const debounce: {
2039
2039
  * Stream.tap((n) => log(`> Emitted ${n}`))
2040
2040
  * )
2041
2041
  *
2042
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2042
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2043
2043
  * // Received 1 after 5ms
2044
2044
  * // Received 2 after 2ms
2045
2045
  * // Received 3 after 0ms
@@ -2095,7 +2095,7 @@ export const debounce: {
2095
2095
  * Stream.tap((n) => log(`> Emitted ${n}`))
2096
2096
  * )
2097
2097
  *
2098
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2098
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2099
2099
  * // Received 1 after 5ms
2100
2100
  * // Received 2 after 2ms
2101
2101
  * // Received 3 after 0ms
@@ -2248,7 +2248,7 @@ export const distributedWithDynamic: {
2248
2248
  * // We create a stream and immediately drain it.
2249
2249
  * const stream = Stream.range(1, 6).pipe(Stream.drain)
2250
2250
  *
2251
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2251
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2252
2252
  * // { _id: 'Chunk', values: [] }
2253
2253
  * ```
2254
2254
  *
@@ -2466,7 +2466,7 @@ export const either: <A, E, R>(self: Stream<A, E, R>) => Stream<Either.Either<A,
2466
2466
  *
2467
2467
  * const stream = Stream.empty
2468
2468
  *
2469
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2469
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2470
2470
  * // { _id: 'Chunk', values: [] }
2471
2471
  * ```
2472
2472
  *
@@ -2489,7 +2489,7 @@ export const empty: Stream<never> = internal.empty
2489
2489
  * )
2490
2490
  * )
2491
2491
  *
2492
- * // Effect.runPromise(Stream.runCollect(program)).then(console.log)
2492
+ * Effect.runPromise(Stream.runCollect(program)).then(console.log)
2493
2493
  * // Application Logic.
2494
2494
  * // Finalizing the stream
2495
2495
  * // Doing some other works after stream's finalization
@@ -2514,7 +2514,7 @@ export const ensuring: {
2514
2514
  * )
2515
2515
  * )
2516
2516
  *
2517
- * // Effect.runPromise(Stream.runCollect(program)).then(console.log)
2517
+ * Effect.runPromise(Stream.runCollect(program)).then(console.log)
2518
2518
  * // Application Logic.
2519
2519
  * // Finalizing the stream
2520
2520
  * // Doing some other works after stream's finalization
@@ -2539,7 +2539,7 @@ export const ensuring: {
2539
2539
  * )
2540
2540
  * )
2541
2541
  *
2542
- * // Effect.runPromise(Stream.runCollect(program)).then(console.log)
2542
+ * Effect.runPromise(Stream.runCollect(program)).then(console.log)
2543
2543
  * // Application Logic.
2544
2544
  * // Finalizing the stream
2545
2545
  * // Doing some other works after stream's finalization
@@ -2679,7 +2679,7 @@ export const failCauseSync: <E>(evaluate: LazyArg<Cause.Cause<E>>) => Stream<nev
2679
2679
  *
2680
2680
  * const stream = Stream.range(1, 11).pipe(Stream.filter((n) => n % 2 === 0))
2681
2681
  *
2682
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2682
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2683
2683
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8, 10 ] }
2684
2684
  * ```
2685
2685
  *
@@ -2696,7 +2696,7 @@ export const filter: {
2696
2696
  *
2697
2697
  * const stream = Stream.range(1, 11).pipe(Stream.filter((n) => n % 2 === 0))
2698
2698
  *
2699
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2699
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2700
2700
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8, 10 ] }
2701
2701
  * ```
2702
2702
  *
@@ -2713,7 +2713,7 @@ export const filter: {
2713
2713
  *
2714
2714
  * const stream = Stream.range(1, 11).pipe(Stream.filter((n) => n % 2 === 0))
2715
2715
  *
2716
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2716
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2717
2717
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8, 10 ] }
2718
2718
  * ```
2719
2719
  *
@@ -2730,7 +2730,7 @@ export const filter: {
2730
2730
  *
2731
2731
  * const stream = Stream.range(1, 11).pipe(Stream.filter((n) => n % 2 === 0))
2732
2732
  *
2733
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2733
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2734
2734
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8, 10 ] }
2735
2735
  * ```
2736
2736
  *
@@ -2747,7 +2747,7 @@ export const filter: {
2747
2747
  *
2748
2748
  * const stream = Stream.range(1, 11).pipe(Stream.filter((n) => n % 2 === 0))
2749
2749
  *
2750
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2750
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
2751
2751
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8, 10 ] }
2752
2752
  * ```
2753
2753
  *
@@ -2906,7 +2906,7 @@ export const filterMapWhileEffect: {
2906
2906
  * )
2907
2907
  * )
2908
2908
  *
2909
- * // Effect.runPromise(Stream.runCollect(program)).then(console.log)
2909
+ * Effect.runPromise(Stream.runCollect(program)).then(console.log)
2910
2910
  * // Application Logic.
2911
2911
  * // Deleting dir: tmp
2912
2912
  * // Temporary directory was deleted.
@@ -3163,7 +3163,7 @@ export const forever: <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R> = inte
3163
3163
  * (e) => new Error(String(e)) // Error Handling
3164
3164
  * )
3165
3165
  *
3166
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3166
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3167
3167
  * // { _id: 'Chunk', values: [ 1, 2 ] }
3168
3168
  * ```
3169
3169
  *
@@ -3203,7 +3203,7 @@ export const toChannel: <A, E, R>(
3203
3203
  * // Creating a stream with values from a single Chunk
3204
3204
  * const stream = Stream.fromChunk(Chunk.make(1, 2, 3))
3205
3205
  *
3206
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3206
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3207
3207
  * // { _id: 'Chunk', values: [ 1, 2, 3 ] }
3208
3208
  * ```
3209
3209
  *
@@ -3280,7 +3280,7 @@ export const fromChunkQueue: <A>(
3280
3280
  * // Creating a stream with values from multiple Chunks
3281
3281
  * const stream = Stream.fromChunks(Chunk.make(1, 2, 3), Chunk.make(4, 5, 6))
3282
3282
  *
3283
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3283
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3284
3284
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6 ] }
3285
3285
  * ```
3286
3286
  *
@@ -3299,7 +3299,7 @@ export const fromChunks: <A>(...chunks: Array<Chunk.Chunk<A>>) => Stream<A> = in
3299
3299
  *
3300
3300
  * const stream = Stream.fromEffect(Random.nextInt)
3301
3301
  *
3302
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3302
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3303
3303
  * // Example Output: { _id: 'Chunk', values: [ 922694024 ] }
3304
3304
  * ```
3305
3305
  *
@@ -3386,7 +3386,7 @@ export const fromTPubSub: <A>(pubsub: TPubSub<A>) => Stream<A> = internal.fromTP
3386
3386
  *
3387
3387
  * const stream = Stream.fromIterable(numbers)
3388
3388
  *
3389
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3389
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3390
3390
  * // { _id: 'Chunk', values: [ 1, 2, 3 ] }
3391
3391
  * ```
3392
3392
  *
@@ -3411,9 +3411,9 @@ export const fromIterable: <A>(iterable: Iterable<A>) => Stream<A> = internal.fr
3411
3411
  *
3412
3412
  * const stream = Stream.fromIterableEffect(getUsers)
3413
3413
  *
3414
- * // Effect.runPromise(
3415
- * // Stream.runCollect(stream.pipe(Stream.provideService(Database, { getUsers: Effect.succeed(["user1", "user2"]) })))
3416
- * // ).then(console.log)
3414
+ * Effect.runPromise(
3415
+ * Stream.runCollect(stream.pipe(Stream.provideService(Database, { getUsers: Effect.succeed(["user1", "user2"]) })))
3416
+ * ).then(console.log)
3417
3417
  * // { _id: 'Chunk', values: [ 'user1', 'user2' ] }
3418
3418
  * ```
3419
3419
  *
@@ -3563,7 +3563,7 @@ export const fromReadableStreamByob: {
3563
3563
  *
3564
3564
  * const stream = Stream.fromSchedule(schedule)
3565
3565
  *
3566
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3566
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3567
3567
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
3568
3568
  * ```
3569
3569
  *
@@ -3626,7 +3626,7 @@ export const groupAdjacentBy: {
3626
3626
  * )
3627
3627
  * ))
3628
3628
  *
3629
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3629
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3630
3630
  * // {
3631
3631
  * // _id: 'Chunk',
3632
3632
  * // values: [ [ 'M', 1 ], [ 'J', 3 ], [ 'R', 2 ], [ 'P', 2 ] ]
@@ -3664,7 +3664,7 @@ export const groupBy: {
3664
3664
  * )
3665
3665
  * ))
3666
3666
  *
3667
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3667
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3668
3668
  * // {
3669
3669
  * // _id: 'Chunk',
3670
3670
  * // values: [ [ 'M', 1 ], [ 'J', 3 ], [ 'R', 2 ], [ 'P', 2 ] ]
@@ -3705,7 +3705,7 @@ export const groupBy: {
3705
3705
  * )
3706
3706
  * ))
3707
3707
  *
3708
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3708
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
3709
3709
  * // {
3710
3710
  * // _id: 'Chunk',
3711
3711
  * // values: [ [ 'M', 1 ], [ 'J', 3 ], [ 'R', 2 ], [ 'P', 2 ] ]
@@ -3852,7 +3852,7 @@ export const groupByKey: {
3852
3852
  *
3853
3853
  * const stream = Stream.range(0, 8).pipe(Stream.grouped(3))
3854
3854
  *
3855
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log("%o", chunks))
3855
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log("%o", chunks))
3856
3856
  * // {
3857
3857
  * // _id: 'Chunk',
3858
3858
  * // values: [
@@ -3877,7 +3877,7 @@ export const grouped: {
3877
3877
  *
3878
3878
  * const stream = Stream.range(0, 8).pipe(Stream.grouped(3))
3879
3879
  *
3880
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log("%o", chunks))
3880
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log("%o", chunks))
3881
3881
  * // {
3882
3882
  * // _id: 'Chunk',
3883
3883
  * // values: [
@@ -3902,7 +3902,7 @@ export const grouped: {
3902
3902
  *
3903
3903
  * const stream = Stream.range(0, 8).pipe(Stream.grouped(3))
3904
3904
  *
3905
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log("%o", chunks))
3905
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log("%o", chunks))
3906
3906
  * // {
3907
3907
  * // _id: 'Chunk',
3908
3908
  * // values: [
@@ -3934,7 +3934,7 @@ export const grouped: {
3934
3934
  * Stream.take(3)
3935
3935
  * )
3936
3936
  *
3937
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log(Chunk.toArray(chunks)))
3937
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log(Chunk.toArray(chunks)))
3938
3938
  * // [
3939
3939
  * // {
3940
3940
  * // _id: 'Chunk',
@@ -3981,7 +3981,7 @@ export const groupedWithin: {
3981
3981
  * Stream.take(3)
3982
3982
  * )
3983
3983
  *
3984
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log(Chunk.toArray(chunks)))
3984
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log(Chunk.toArray(chunks)))
3985
3985
  * // [
3986
3986
  * // {
3987
3987
  * // _id: 'Chunk',
@@ -4028,7 +4028,7 @@ export const groupedWithin: {
4028
4028
  * Stream.take(3)
4029
4029
  * )
4030
4030
  *
4031
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log(Chunk.toArray(chunks)))
4031
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunks) => console.log(Chunk.toArray(chunks)))
4032
4032
  * // [
4033
4033
  * // {
4034
4034
  * // _id: 'Chunk',
@@ -4194,7 +4194,7 @@ export const identity: <A, E = never, R = never>() => Stream<A, E, R> = internal
4194
4194
  *
4195
4195
  * const stream = Stream.interleave(s1, s2)
4196
4196
  *
4197
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4197
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4198
4198
  * // { _id: 'Chunk', values: [ 1, 4, 2, 5, 3, 6 ] }
4199
4199
  * ```
4200
4200
  * @since 2.0.0
@@ -4216,7 +4216,7 @@ export const interleave: {
4216
4216
  *
4217
4217
  * const stream = Stream.interleave(s1, s2)
4218
4218
  *
4219
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4219
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4220
4220
  * // { _id: 'Chunk', values: [ 1, 4, 2, 5, 3, 6 ] }
4221
4221
  * ```
4222
4222
  * @since 2.0.0
@@ -4238,7 +4238,7 @@ export const interleave: {
4238
4238
  *
4239
4239
  * const stream = Stream.interleave(s1, s2)
4240
4240
  *
4241
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4241
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4242
4242
  * // { _id: 'Chunk', values: [ 1, 4, 2, 5, 3, 6 ] }
4243
4243
  * ```
4244
4244
  * @since 2.0.0
@@ -4267,7 +4267,7 @@ export const interleave: {
4267
4267
  *
4268
4268
  * const stream = Stream.interleaveWith(s1, s2, booleanStream)
4269
4269
  *
4270
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4270
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4271
4271
  * // {
4272
4272
  * // _id: 'Chunk',
4273
4273
  * // values: [
@@ -4301,7 +4301,7 @@ export const interleaveWith: {
4301
4301
  *
4302
4302
  * const stream = Stream.interleaveWith(s1, s2, booleanStream)
4303
4303
  *
4304
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4304
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4305
4305
  * // {
4306
4306
  * // _id: 'Chunk',
4307
4307
  * // values: [
@@ -4335,7 +4335,7 @@ export const interleaveWith: {
4335
4335
  *
4336
4336
  * const stream = Stream.interleaveWith(s1, s2, booleanStream)
4337
4337
  *
4338
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4338
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4339
4339
  * // {
4340
4340
  * // _id: 'Chunk',
4341
4341
  * // values: [
@@ -4364,7 +4364,7 @@ export const interleaveWith: {
4364
4364
  *
4365
4365
  * const stream = Stream.make(1, 2, 3, 4, 5).pipe(Stream.intersperse(0))
4366
4366
  *
4367
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4367
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4368
4368
  * // {
4369
4369
  * // _id: 'Chunk',
4370
4370
  * // values: [
@@ -4387,7 +4387,7 @@ export const intersperse: {
4387
4387
  *
4388
4388
  * const stream = Stream.make(1, 2, 3, 4, 5).pipe(Stream.intersperse(0))
4389
4389
  *
4390
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4390
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4391
4391
  * // {
4392
4392
  * // _id: 'Chunk',
4393
4393
  * // values: [
@@ -4410,7 +4410,7 @@ export const intersperse: {
4410
4410
  *
4411
4411
  * const stream = Stream.make(1, 2, 3, 4, 5).pipe(Stream.intersperse(0))
4412
4412
  *
4413
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4413
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4414
4414
  * // {
4415
4415
  * // _id: 'Chunk',
4416
4416
  * // values: [
@@ -4441,7 +4441,7 @@ export const intersperse: {
4441
4441
  * })
4442
4442
  * )
4443
4443
  *
4444
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4444
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4445
4445
  * // {
4446
4446
  * // _id: 'Chunk',
4447
4447
  * // values: [
@@ -4471,7 +4471,7 @@ export const intersperseAffixes: {
4471
4471
  * })
4472
4472
  * )
4473
4473
  *
4474
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4474
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4475
4475
  * // {
4476
4476
  * // _id: 'Chunk',
4477
4477
  * // values: [
@@ -4501,7 +4501,7 @@ export const intersperseAffixes: {
4501
4501
  * })
4502
4502
  * )
4503
4503
  *
4504
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4504
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4505
4505
  * // {
4506
4506
  * // _id: 'Chunk',
4507
4507
  * // values: [
@@ -4634,7 +4634,7 @@ export const interruptWhenDeferred: {
4634
4634
  * // An infinite Stream of numbers starting from 1 and incrementing
4635
4635
  * const stream = Stream.iterate(1, (n) => n + 1)
4636
4636
  *
4637
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(10)))).then(console.log)
4637
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(10)))).then(console.log)
4638
4638
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] }
4639
4639
  * ```
4640
4640
  *
@@ -4652,7 +4652,7 @@ export const iterate: <A>(value: A, next: (value: A) => A) => Stream<A> = intern
4652
4652
  *
4653
4653
  * const stream = Stream.make(1, 2, 3)
4654
4654
  *
4655
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4655
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4656
4656
  * // { _id: 'Chunk', values: [ 1, 2, 3 ] }
4657
4657
  * ```
4658
4658
  *
@@ -4670,7 +4670,7 @@ export const make: <As extends Array<any>>(...as: As) => Stream<As[number]> = in
4670
4670
  *
4671
4671
  * const stream = Stream.make(1, 2, 3).pipe(Stream.map((n) => n + 1))
4672
4672
  *
4673
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4673
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4674
4674
  * // { _id: 'Chunk', values: [ 2, 3, 4 ] }
4675
4675
  * ```
4676
4676
  *
@@ -4687,7 +4687,7 @@ export const map: {
4687
4687
  *
4688
4688
  * const stream = Stream.make(1, 2, 3).pipe(Stream.map((n) => n + 1))
4689
4689
  *
4690
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4690
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4691
4691
  * // { _id: 'Chunk', values: [ 2, 3, 4 ] }
4692
4692
  * ```
4693
4693
  *
@@ -4704,7 +4704,7 @@ export const map: {
4704
4704
  *
4705
4705
  * const stream = Stream.make(1, 2, 3).pipe(Stream.map((n) => n + 1))
4706
4706
  *
4707
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4707
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
4708
4708
  * // { _id: 'Chunk', values: [ 2, 3, 4 ] }
4709
4709
  * ```
4710
4710
  *
@@ -4725,9 +4725,9 @@ export const map: {
4725
4725
  * stream.pipe(Stream.mapAccum(0, (s, a) => [s + a, s + a]))
4726
4726
  *
4727
4727
  * // input: 0, 1, 2, 3, 4, 5, 6
4728
- * // Effect.runPromise(Stream.runCollect(runningTotal(Stream.range(0, 6)))).then(
4729
- * // console.log
4730
- * // )
4728
+ * Effect.runPromise(Stream.runCollect(runningTotal(Stream.range(0, 6)))).then(
4729
+ * console.log
4730
+ * )
4731
4731
  * // { _id: "Chunk", values: [ 0, 1, 3, 6, 10, 15, 21 ] }
4732
4732
  * ```
4733
4733
  *
@@ -4746,9 +4746,9 @@ export const mapAccum: {
4746
4746
  * stream.pipe(Stream.mapAccum(0, (s, a) => [s + a, s + a]))
4747
4747
  *
4748
4748
  * // input: 0, 1, 2, 3, 4, 5, 6
4749
- * // Effect.runPromise(Stream.runCollect(runningTotal(Stream.range(0, 6)))).then(
4750
- * // console.log
4751
- * // )
4749
+ * Effect.runPromise(Stream.runCollect(runningTotal(Stream.range(0, 6)))).then(
4750
+ * console.log
4751
+ * )
4752
4752
  * // { _id: "Chunk", values: [ 0, 1, 3, 6, 10, 15, 21 ] }
4753
4753
  * ```
4754
4754
  *
@@ -4767,9 +4767,9 @@ export const mapAccum: {
4767
4767
  * stream.pipe(Stream.mapAccum(0, (s, a) => [s + a, s + a]))
4768
4768
  *
4769
4769
  * // input: 0, 1, 2, 3, 4, 5, 6
4770
- * // Effect.runPromise(Stream.runCollect(runningTotal(Stream.range(0, 6)))).then(
4771
- * // console.log
4772
- * // )
4770
+ * Effect.runPromise(Stream.runCollect(runningTotal(Stream.range(0, 6)))).then(
4771
+ * console.log
4772
+ * )
4773
4773
  * // { _id: "Chunk", values: [ 0, 1, 3, 6, 10, 15, 21 ] }
4774
4774
  * ```
4775
4775
  *
@@ -4902,7 +4902,7 @@ export const mapChunksEffect: {
4902
4902
  * Stream.map((s) => parseInt(s))
4903
4903
  * )
4904
4904
  *
4905
- * // Effect.runPromise(Stream.runCollect(numbers)).then(console.log)
4905
+ * Effect.runPromise(Stream.runCollect(numbers)).then(console.log)
4906
4906
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6 ] }
4907
4907
  * ```
4908
4908
  *
@@ -4923,7 +4923,7 @@ export const mapConcat: {
4923
4923
  * Stream.map((s) => parseInt(s))
4924
4924
  * )
4925
4925
  *
4926
- * // Effect.runPromise(Stream.runCollect(numbers)).then(console.log)
4926
+ * Effect.runPromise(Stream.runCollect(numbers)).then(console.log)
4927
4927
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6 ] }
4928
4928
  * ```
4929
4929
  *
@@ -4944,7 +4944,7 @@ export const mapConcat: {
4944
4944
  * Stream.map((s) => parseInt(s))
4945
4945
  * )
4946
4946
  *
4947
- * // Effect.runPromise(Stream.runCollect(numbers)).then(console.log)
4947
+ * Effect.runPromise(Stream.runCollect(numbers)).then(console.log)
4948
4948
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5, 6 ] }
4949
4949
  * ```
4950
4950
  *
@@ -5043,7 +5043,7 @@ export const mapConcatEffect: {
5043
5043
  * Stream.mapEffect((n) => Random.nextIntBetween(0, n))
5044
5044
  * )
5045
5045
  *
5046
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5046
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5047
5047
  * // Example Output: { _id: 'Chunk', values: [ 7, 19, 8 ] }
5048
5048
  * ```
5049
5049
  *
@@ -5062,7 +5062,7 @@ export const mapEffect: {
5062
5062
  * Stream.mapEffect((n) => Random.nextIntBetween(0, n))
5063
5063
  * )
5064
5064
  *
5065
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5065
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5066
5066
  * // Example Output: { _id: 'Chunk', values: [ 7, 19, 8 ] }
5067
5067
  * ```
5068
5068
  *
@@ -5086,7 +5086,7 @@ export const mapEffect: {
5086
5086
  * Stream.mapEffect((n) => Random.nextIntBetween(0, n))
5087
5087
  * )
5088
5088
  *
5089
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5089
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5090
5090
  * // Example Output: { _id: 'Chunk', values: [ 7, 19, 8 ] }
5091
5091
  * ```
5092
5092
  *
@@ -5108,7 +5108,7 @@ export const mapEffect: {
5108
5108
  * Stream.mapEffect((n) => Random.nextIntBetween(0, n))
5109
5109
  * )
5110
5110
  *
5111
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5111
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5112
5112
  * // Example Output: { _id: 'Chunk', values: [ 7, 19, 8 ] }
5113
5113
  * ```
5114
5114
  *
@@ -5133,7 +5133,7 @@ export const mapEffect: {
5133
5133
  * Stream.mapEffect((n) => Random.nextIntBetween(0, n))
5134
5134
  * )
5135
5135
  *
5136
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5136
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5137
5137
  * // Example Output: { _id: 'Chunk', values: [ 7, 19, 8 ] }
5138
5138
  * ```
5139
5139
  *
@@ -5212,7 +5212,7 @@ export const mapErrorCause: {
5212
5212
  *
5213
5213
  * const stream = Stream.merge(s1, s2)
5214
5214
  *
5215
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5215
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5216
5216
  * // { _id: 'Chunk', values: [ 1, 4, 2, 3, 5, 6 ] }
5217
5217
  * ```
5218
5218
  *
@@ -5239,7 +5239,7 @@ export const merge: {
5239
5239
  *
5240
5240
  * const stream = Stream.merge(s1, s2)
5241
5241
  *
5242
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5242
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5243
5243
  * // { _id: 'Chunk', values: [ 1, 4, 2, 3, 5, 6 ] }
5244
5244
  * ```
5245
5245
  *
@@ -5269,7 +5269,7 @@ export const merge: {
5269
5269
  *
5270
5270
  * const stream = Stream.merge(s1, s2)
5271
5271
  *
5272
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5272
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5273
5273
  * // { _id: 'Chunk', values: [ 1, 4, 2, 3, 5, 6 ] }
5274
5274
  * ```
5275
5275
  *
@@ -5415,7 +5415,7 @@ export const mergeWithTag: {
5415
5415
  * onOther: (n) => Math.floor(n)
5416
5416
  * })
5417
5417
  *
5418
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5418
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5419
5419
  * // { _id: 'Chunk', values: [ 1, 4, 2, 3, 5, 6 ] }
5420
5420
  * ```
5421
5421
  *
@@ -5446,7 +5446,7 @@ export const mergeWith: {
5446
5446
  * onOther: (n) => Math.floor(n)
5447
5447
  * })
5448
5448
  *
5449
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5449
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5450
5450
  * // { _id: 'Chunk', values: [ 1, 4, 2, 3, 5, 6 ] }
5451
5451
  * ```
5452
5452
  *
@@ -5484,7 +5484,7 @@ export const mergeWith: {
5484
5484
  * onOther: (n) => Math.floor(n)
5485
5485
  * })
5486
5486
  *
5487
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5487
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5488
5488
  * // { _id: 'Chunk', values: [ 1, 4, 2, 3, 5, 6 ] }
5489
5489
  * ```
5490
5490
  *
@@ -5748,7 +5748,7 @@ export const onDone: {
5748
5748
  * Stream.tap((n) => Console.log(`after mapping: ${n}`))
5749
5749
  * )
5750
5750
  *
5751
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5751
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5752
5752
  * // Stream started
5753
5753
  * // after mapping: 2
5754
5754
  * // after mapping: 4
@@ -5773,7 +5773,7 @@ export const onStart: {
5773
5773
  * Stream.tap((n) => Console.log(`after mapping: ${n}`))
5774
5774
  * )
5775
5775
  *
5776
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5776
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5777
5777
  * // Stream started
5778
5778
  * // after mapping: 2
5779
5779
  * // after mapping: 4
@@ -5798,7 +5798,7 @@ export const onStart: {
5798
5798
  * Stream.tap((n) => Console.log(`after mapping: ${n}`))
5799
5799
  * )
5800
5800
  *
5801
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5801
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
5802
5802
  * // Stream started
5803
5803
  * // after mapping: 2
5804
5804
  * // after mapping: 4
@@ -6040,7 +6040,7 @@ export const orElseSucceed: {
6040
6040
  * n < 3 ? Option.some(n + 1) : Option.none()
6041
6041
  * ])
6042
6042
  *
6043
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
6043
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
6044
6044
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3 ] }
6045
6045
  * ```
6046
6046
  *
@@ -6100,12 +6100,9 @@ export const paginateEffect: <S, A, E, R>(
6100
6100
  * The faster stream may advance up to `bufferSize` elements ahead of the slower
6101
6101
  * one.
6102
6102
  *
6103
- * @see {@link partitionEither} for partitioning a stream based on effectful
6104
- * conditions.
6103
+ * **Example** (Partitioning a Stream into Even and Odd Numbers)
6105
6104
  *
6106
- * @example
6107
6105
  * ```ts
6108
- * // Title: Partitioning a Stream into Even and Odd Numbers
6109
6106
  * import { Effect, Stream } from "effect"
6110
6107
  *
6111
6108
  * const partition = Stream.range(1, 9).pipe(
@@ -6120,11 +6117,14 @@ export const paginateEffect: <S, A, E, R>(
6120
6117
  * })
6121
6118
  * )
6122
6119
  *
6123
- * // Effect.runPromise(program)
6120
+ * Effect.runPromise(program)
6124
6121
  * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
6125
6122
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
6126
6123
  * ```
6127
6124
  *
6125
+ * @see {@link partitionEither} for partitioning a stream based on effectful
6126
+ * conditions.
6127
+ *
6128
6128
  * @since 2.0.0
6129
6129
  * @category utils
6130
6130
  */
@@ -6141,12 +6141,9 @@ export const partition: {
6141
6141
  * The faster stream may advance up to `bufferSize` elements ahead of the slower
6142
6142
  * one.
6143
6143
  *
6144
- * @see {@link partitionEither} for partitioning a stream based on effectful
6145
- * conditions.
6144
+ * **Example** (Partitioning a Stream into Even and Odd Numbers)
6146
6145
  *
6147
- * @example
6148
6146
  * ```ts
6149
- * // Title: Partitioning a Stream into Even and Odd Numbers
6150
6147
  * import { Effect, Stream } from "effect"
6151
6148
  *
6152
6149
  * const partition = Stream.range(1, 9).pipe(
@@ -6161,11 +6158,14 @@ export const partition: {
6161
6158
  * })
6162
6159
  * )
6163
6160
  *
6164
- * // Effect.runPromise(program)
6161
+ * Effect.runPromise(program)
6165
6162
  * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
6166
6163
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
6167
6164
  * ```
6168
6165
  *
6166
+ * @see {@link partitionEither} for partitioning a stream based on effectful
6167
+ * conditions.
6168
+ *
6169
6169
  * @since 2.0.0
6170
6170
  * @category utils
6171
6171
  */
@@ -6187,12 +6187,9 @@ export const partition: {
6187
6187
  * The faster stream may advance up to `bufferSize` elements ahead of the slower
6188
6188
  * one.
6189
6189
  *
6190
- * @see {@link partitionEither} for partitioning a stream based on effectful
6191
- * conditions.
6190
+ * **Example** (Partitioning a Stream into Even and Odd Numbers)
6192
6191
  *
6193
- * @example
6194
6192
  * ```ts
6195
- * // Title: Partitioning a Stream into Even and Odd Numbers
6196
6193
  * import { Effect, Stream } from "effect"
6197
6194
  *
6198
6195
  * const partition = Stream.range(1, 9).pipe(
@@ -6207,11 +6204,14 @@ export const partition: {
6207
6204
  * })
6208
6205
  * )
6209
6206
  *
6210
- * // Effect.runPromise(program)
6207
+ * Effect.runPromise(program)
6211
6208
  * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
6212
6209
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
6213
6210
  * ```
6214
6211
  *
6212
+ * @see {@link partitionEither} for partitioning a stream based on effectful
6213
+ * conditions.
6214
+ *
6215
6215
  * @since 2.0.0
6216
6216
  * @category utils
6217
6217
  */
@@ -6233,12 +6233,9 @@ export const partition: {
6233
6233
  * The faster stream may advance up to `bufferSize` elements ahead of the slower
6234
6234
  * one.
6235
6235
  *
6236
- * @see {@link partitionEither} for partitioning a stream based on effectful
6237
- * conditions.
6236
+ * **Example** (Partitioning a Stream into Even and Odd Numbers)
6238
6237
  *
6239
- * @example
6240
6238
  * ```ts
6241
- * // Title: Partitioning a Stream into Even and Odd Numbers
6242
6239
  * import { Effect, Stream } from "effect"
6243
6240
  *
6244
6241
  * const partition = Stream.range(1, 9).pipe(
@@ -6253,11 +6250,14 @@ export const partition: {
6253
6250
  * })
6254
6251
  * )
6255
6252
  *
6256
- * // Effect.runPromise(program)
6253
+ * Effect.runPromise(program)
6257
6254
  * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
6258
6255
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
6259
6256
  * ```
6260
6257
  *
6258
+ * @see {@link partitionEither} for partitioning a stream based on effectful
6259
+ * conditions.
6260
+ *
6261
6261
  * @since 2.0.0
6262
6262
  * @category utils
6263
6263
  */
@@ -6278,12 +6278,9 @@ export const partition: {
6278
6278
  * The faster stream may advance up to `bufferSize` elements ahead of the slower
6279
6279
  * one.
6280
6280
  *
6281
- * @see {@link partitionEither} for partitioning a stream based on effectful
6282
- * conditions.
6281
+ * **Example** (Partitioning a Stream into Even and Odd Numbers)
6283
6282
  *
6284
- * @example
6285
6283
  * ```ts
6286
- * // Title: Partitioning a Stream into Even and Odd Numbers
6287
6284
  * import { Effect, Stream } from "effect"
6288
6285
  *
6289
6286
  * const partition = Stream.range(1, 9).pipe(
@@ -6298,11 +6295,14 @@ export const partition: {
6298
6295
  * })
6299
6296
  * )
6300
6297
  *
6301
- * // Effect.runPromise(program)
6298
+ * Effect.runPromise(program)
6302
6299
  * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
6303
6300
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
6304
6301
  * ```
6305
6302
  *
6303
+ * @see {@link partitionEither} for partitioning a stream based on effectful
6304
+ * conditions.
6305
+ *
6306
6306
  * @since 2.0.0
6307
6307
  * @category utils
6308
6308
  */
@@ -6327,11 +6327,9 @@ export const partition: {
6327
6327
  * The faster stream may advance up to `bufferSize` elements ahead of the slower
6328
6328
  * one.
6329
6329
  *
6330
- * @see {@link partition} for partitioning a stream based on simple conditions.
6330
+ * **Example** (Partitioning a Stream with an Effectful Predicate)
6331
6331
  *
6332
- * @example
6333
6332
  * ```ts
6334
- * // Title: Partitioning a Stream with an Effectful Predicate
6335
6333
  * import { Effect, Either, Stream } from "effect"
6336
6334
  *
6337
6335
  * const partition = Stream.range(1, 9).pipe(
@@ -6349,11 +6347,13 @@ export const partition: {
6349
6347
  * })
6350
6348
  * )
6351
6349
  *
6352
- * // Effect.runPromise(program)
6350
+ * Effect.runPromise(program)
6353
6351
  * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
6354
6352
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
6355
6353
  * ```
6356
6354
  *
6355
+ * @see {@link partition} for partitioning a stream based on simple conditions.
6356
+ *
6357
6357
  * @since 2.0.0
6358
6358
  * @category utils
6359
6359
  */
@@ -6372,11 +6372,9 @@ export const partitionEither: {
6372
6372
  * The faster stream may advance up to `bufferSize` elements ahead of the slower
6373
6373
  * one.
6374
6374
  *
6375
- * @see {@link partition} for partitioning a stream based on simple conditions.
6375
+ * **Example** (Partitioning a Stream with an Effectful Predicate)
6376
6376
  *
6377
- * @example
6378
6377
  * ```ts
6379
- * // Title: Partitioning a Stream with an Effectful Predicate
6380
6378
  * import { Effect, Either, Stream } from "effect"
6381
6379
  *
6382
6380
  * const partition = Stream.range(1, 9).pipe(
@@ -6394,11 +6392,13 @@ export const partitionEither: {
6394
6392
  * })
6395
6393
  * )
6396
6394
  *
6397
- * // Effect.runPromise(program)
6395
+ * Effect.runPromise(program)
6398
6396
  * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
6399
6397
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
6400
6398
  * ```
6401
6399
  *
6400
+ * @see {@link partition} for partitioning a stream based on simple conditions.
6401
+ *
6402
6402
  * @since 2.0.0
6403
6403
  * @category utils
6404
6404
  */
@@ -6422,11 +6422,9 @@ export const partitionEither: {
6422
6422
  * The faster stream may advance up to `bufferSize` elements ahead of the slower
6423
6423
  * one.
6424
6424
  *
6425
- * @see {@link partition} for partitioning a stream based on simple conditions.
6425
+ * **Example** (Partitioning a Stream with an Effectful Predicate)
6426
6426
  *
6427
- * @example
6428
6427
  * ```ts
6429
- * // Title: Partitioning a Stream with an Effectful Predicate
6430
6428
  * import { Effect, Either, Stream } from "effect"
6431
6429
  *
6432
6430
  * const partition = Stream.range(1, 9).pipe(
@@ -6444,11 +6442,13 @@ export const partitionEither: {
6444
6442
  * })
6445
6443
  * )
6446
6444
  *
6447
- * // Effect.runPromise(program)
6445
+ * Effect.runPromise(program)
6448
6446
  * // { _id: 'Chunk', values: [ 1, 3, 5, 7, 9 ] }
6449
6447
  * // { _id: 'Chunk', values: [ 2, 4, 6, 8 ] }
6450
6448
  * ```
6451
6449
  *
6450
+ * @see {@link partition} for partitioning a stream based on simple conditions.
6451
+ *
6452
6452
  * @since 2.0.0
6453
6453
  * @category utils
6454
6454
  */
@@ -6924,7 +6924,7 @@ export const raceAll: <S extends ReadonlyArray<Stream<any, any, any>>>(
6924
6924
  * // A Stream with a range of numbers from 1 to 5
6925
6925
  * const stream = Stream.range(1, 5)
6926
6926
  *
6927
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
6927
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
6928
6928
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
6929
6929
  * ```
6930
6930
  *
@@ -7022,7 +7022,7 @@ export const refineOrDieWith: {
7022
7022
  *
7023
7023
  * const stream = Stream.repeat(Stream.succeed(1), Schedule.forever)
7024
7024
  *
7025
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
7025
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
7026
7026
  * // { _id: 'Chunk', values: [ 1, 1, 1, 1, 1 ] }
7027
7027
  * ```
7028
7028
  *
@@ -7040,7 +7040,7 @@ export const repeat: {
7040
7040
  *
7041
7041
  * const stream = Stream.repeat(Stream.succeed(1), Schedule.forever)
7042
7042
  *
7043
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
7043
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
7044
7044
  * // { _id: 'Chunk', values: [ 1, 1, 1, 1, 1 ] }
7045
7045
  * ```
7046
7046
  *
@@ -7058,7 +7058,7 @@ export const repeat: {
7058
7058
  *
7059
7059
  * const stream = Stream.repeat(Stream.succeed(1), Schedule.forever)
7060
7060
  *
7061
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
7061
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
7062
7062
  * // { _id: 'Chunk', values: [ 1, 1, 1, 1, 1 ] }
7063
7063
  * ```
7064
7064
  *
@@ -7078,7 +7078,7 @@ export const repeat: {
7078
7078
  *
7079
7079
  * const stream = Stream.repeatEffect(Random.nextInt)
7080
7080
  *
7081
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
7081
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
7082
7082
  * // Example Output: { _id: 'Chunk', values: [ 3891571149, 4239494205, 2352981603, 2339111046, 1488052210 ] }
7083
7083
  * ```
7084
7084
  *
@@ -7278,7 +7278,7 @@ export const repeatElementsWith: {
7278
7278
  *
7279
7279
  * const stream = Stream.repeatValue(0)
7280
7280
  *
7281
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
7281
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
7282
7282
  * // { _id: 'Chunk', values: [ 0, 0, 0, 0, 0 ] }
7283
7283
  * ```
7284
7284
  *
@@ -7977,7 +7977,7 @@ export const runSum: <E, R>(self: Stream<number, E, R>) => Effect.Effect<number,
7977
7977
  *
7978
7978
  * const stream = Stream.range(1, 6).pipe(Stream.scan(0, (a, b) => a + b))
7979
7979
  *
7980
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
7980
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
7981
7981
  * // { _id: 'Chunk', values: [ 0, 1, 3, 6, 10, 15, 21 ] }
7982
7982
  * ```
7983
7983
  *
@@ -7995,7 +7995,7 @@ export const scan: {
7995
7995
  *
7996
7996
  * const stream = Stream.range(1, 6).pipe(Stream.scan(0, (a, b) => a + b))
7997
7997
  *
7998
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
7998
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
7999
7999
  * // { _id: 'Chunk', values: [ 0, 1, 3, 6, 10, 15, 21 ] }
8000
8000
  * ```
8001
8001
  *
@@ -8013,7 +8013,7 @@ export const scan: {
8013
8013
  *
8014
8014
  * const stream = Stream.range(1, 6).pipe(Stream.scan(0, (a, b) => a + b))
8015
8015
  *
8016
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8016
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8017
8017
  * // { _id: 'Chunk', values: [ 0, 1, 3, 6, 10, 15, 21 ] }
8018
8018
  * ```
8019
8019
  *
@@ -8192,7 +8192,7 @@ export const scheduleWith: {
8192
8192
  * Stream.flatMap(() => Console.log("use"))
8193
8193
  * )
8194
8194
  *
8195
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8195
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8196
8196
  * // acquire
8197
8197
  * // use
8198
8198
  * // release
@@ -8483,7 +8483,7 @@ export const splitLines: <E, R>(self: Stream<string, E, R>) => Stream<string, E,
8483
8483
  * // A Stream with a single number
8484
8484
  * const stream = Stream.succeed(3)
8485
8485
  *
8486
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8486
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8487
8487
  * // { _id: 'Chunk', values: [ 3 ] }
8488
8488
  * ```
8489
8489
  *
@@ -8517,7 +8517,7 @@ export const suspend: <A, E, R>(stream: LazyArg<Stream<A, E, R>>) => Stream<A, E
8517
8517
  *
8518
8518
  * const stream = Stream.take(Stream.iterate(0, (n) => n + 1), 5)
8519
8519
  *
8520
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8520
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8521
8521
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8522
8522
  * ```
8523
8523
  *
@@ -8534,7 +8534,7 @@ export const take: {
8534
8534
  *
8535
8535
  * const stream = Stream.take(Stream.iterate(0, (n) => n + 1), 5)
8536
8536
  *
8537
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8537
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8538
8538
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8539
8539
  * ```
8540
8540
  *
@@ -8551,7 +8551,7 @@ export const take: {
8551
8551
  *
8552
8552
  * const stream = Stream.take(Stream.iterate(0, (n) => n + 1), 5)
8553
8553
  *
8554
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8554
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8555
8555
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8556
8556
  * ```
8557
8557
  *
@@ -8570,7 +8570,7 @@ export const take: {
8570
8570
  *
8571
8571
  * const stream = Stream.takeRight(Stream.make(1, 2, 3, 4, 5, 6), 3)
8572
8572
  *
8573
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8573
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8574
8574
  * // { _id: 'Chunk', values: [ 4, 5, 6 ] }
8575
8575
  * ```
8576
8576
  *
@@ -8587,7 +8587,7 @@ export const takeRight: {
8587
8587
  *
8588
8588
  * const stream = Stream.takeRight(Stream.make(1, 2, 3, 4, 5, 6), 3)
8589
8589
  *
8590
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8590
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8591
8591
  * // { _id: 'Chunk', values: [ 4, 5, 6 ] }
8592
8592
  * ```
8593
8593
  *
@@ -8604,7 +8604,7 @@ export const takeRight: {
8604
8604
  *
8605
8605
  * const stream = Stream.takeRight(Stream.make(1, 2, 3, 4, 5, 6), 3)
8606
8606
  *
8607
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8607
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8608
8608
  * // { _id: 'Chunk', values: [ 4, 5, 6 ] }
8609
8609
  * ```
8610
8610
  *
@@ -8624,7 +8624,7 @@ export const takeRight: {
8624
8624
  *
8625
8625
  * const stream = Stream.takeUntil(Stream.iterate(0, (n) => n + 1), (n) => n === 4)
8626
8626
  *
8627
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8627
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8628
8628
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8629
8629
  * ```
8630
8630
  *
@@ -8642,7 +8642,7 @@ export const takeUntil: {
8642
8642
  *
8643
8643
  * const stream = Stream.takeUntil(Stream.iterate(0, (n) => n + 1), (n) => n === 4)
8644
8644
  *
8645
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8645
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8646
8646
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8647
8647
  * ```
8648
8648
  *
@@ -8660,7 +8660,7 @@ export const takeUntil: {
8660
8660
  *
8661
8661
  * const stream = Stream.takeUntil(Stream.iterate(0, (n) => n + 1), (n) => n === 4)
8662
8662
  *
8663
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8663
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8664
8664
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8665
8665
  * ```
8666
8666
  *
@@ -8706,7 +8706,7 @@ export const takeUntilEffect: {
8706
8706
  *
8707
8707
  * const stream = Stream.takeWhile(Stream.iterate(0, (n) => n + 1), (n) => n < 5)
8708
8708
  *
8709
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8709
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8710
8710
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8711
8711
  * ```
8712
8712
  *
@@ -8724,7 +8724,7 @@ export const takeWhile: {
8724
8724
  *
8725
8725
  * const stream = Stream.takeWhile(Stream.iterate(0, (n) => n + 1), (n) => n < 5)
8726
8726
  *
8727
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8727
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8728
8728
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8729
8729
  * ```
8730
8730
  *
@@ -8742,7 +8742,7 @@ export const takeWhile: {
8742
8742
  *
8743
8743
  * const stream = Stream.takeWhile(Stream.iterate(0, (n) => n + 1), (n) => n < 5)
8744
8744
  *
8745
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8745
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8746
8746
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8747
8747
  * ```
8748
8748
  *
@@ -8760,7 +8760,7 @@ export const takeWhile: {
8760
8760
  *
8761
8761
  * const stream = Stream.takeWhile(Stream.iterate(0, (n) => n + 1), (n) => n < 5)
8762
8762
  *
8763
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8763
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8764
8764
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8765
8765
  * ```
8766
8766
  *
@@ -8778,7 +8778,7 @@ export const takeWhile: {
8778
8778
  *
8779
8779
  * const stream = Stream.takeWhile(Stream.iterate(0, (n) => n + 1), (n) => n < 5)
8780
8780
  *
8781
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8781
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8782
8782
  * // { _id: 'Chunk', values: [ 0, 1, 2, 3, 4 ] }
8783
8783
  * ```
8784
8784
  *
@@ -8801,7 +8801,7 @@ export const takeWhile: {
8801
8801
  * Stream.tap((n) => Console.log(`after mapping: ${n}`))
8802
8802
  * )
8803
8803
  *
8804
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8804
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8805
8805
  * // before mapping: 1
8806
8806
  * // after mapping: 2
8807
8807
  * // before mapping: 2
@@ -8828,7 +8828,7 @@ export const tap: {
8828
8828
  * Stream.tap((n) => Console.log(`after mapping: ${n}`))
8829
8829
  * )
8830
8830
  *
8831
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8831
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8832
8832
  * // before mapping: 1
8833
8833
  * // after mapping: 2
8834
8834
  * // before mapping: 2
@@ -8855,7 +8855,7 @@ export const tap: {
8855
8855
  * Stream.tap((n) => Console.log(`after mapping: ${n}`))
8856
8856
  * )
8857
8857
  *
8858
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8858
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
8859
8859
  * // before mapping: 1
8860
8860
  * // after mapping: 2
8861
8861
  * // before mapping: 2
@@ -9022,7 +9022,7 @@ export const tapSink: {
9022
9022
  * Stream.tap((n) => log(`> Emitted ${n}`))
9023
9023
  * )
9024
9024
  *
9025
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9025
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9026
9026
  * // Received 0 after 56ms
9027
9027
  * // > Emitted 0 after 0ms
9028
9028
  * // Received 1 after 52ms
@@ -9078,7 +9078,7 @@ export const throttle: {
9078
9078
  * Stream.tap((n) => log(`> Emitted ${n}`))
9079
9079
  * )
9080
9080
  *
9081
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9081
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9082
9082
  * // Received 0 after 56ms
9083
9083
  * // > Emitted 0 after 0ms
9084
9084
  * // Received 1 after 52ms
@@ -9142,7 +9142,7 @@ export const throttle: {
9142
9142
  * Stream.tap((n) => log(`> Emitted ${n}`))
9143
9143
  * )
9144
9144
  *
9145
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9145
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9146
9146
  * // Received 0 after 56ms
9147
9147
  * // > Emitted 0 after 0ms
9148
9148
  * // Received 1 after 52ms
@@ -9260,7 +9260,7 @@ export const throttleEffect: {
9260
9260
  *
9261
9261
  * const stream = Stream.tick("1 seconds").pipe(Stream.tap(() => log("tick")))
9262
9262
  *
9263
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
9263
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
9264
9264
  * // tick after 4ms
9265
9265
  * // tick after 1003ms
9266
9266
  * // tick after 1001ms
@@ -9450,7 +9450,7 @@ export const toPubSub: {
9450
9450
  * }
9451
9451
  * })
9452
9452
  *
9453
- * // Effect.runPromise(Effect.scoped(program)).then(console.log, console.error)
9453
+ * Effect.runPromise(Effect.scoped(program)).then(console.log, console.error)
9454
9454
  * // { _id: 'Chunk', values: [ 1, 2 ] }
9455
9455
  * // { _id: 'Chunk', values: [ 3, 4 ] }
9456
9456
  * // { _id: 'Chunk', values: [ 5 ] }
@@ -9683,7 +9683,7 @@ export const transduce: {
9683
9683
  *
9684
9684
  * const stream = Stream.unfold(1, (n) => Option.some([n, n + 1]))
9685
9685
  *
9686
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
9686
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
9687
9687
  * // { _id: 'Chunk', values: [ 1, 2, 3, 4, 5 ] }
9688
9688
  * ```
9689
9689
  *
@@ -9728,7 +9728,7 @@ export const unfoldChunkEffect: <S, A, E, R>(
9728
9728
  * Effect.map((b) => (b ? Option.some([n, -n]) : Option.some([n, n])))
9729
9729
  * ))
9730
9730
  *
9731
- * // Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
9731
+ * Effect.runPromise(Stream.runCollect(stream.pipe(Stream.take(5)))).then(console.log)
9732
9732
  * // { _id: 'Chunk', values: [ 1, -1, -1, -1, -1 ] }
9733
9733
  * ```
9734
9734
  *
@@ -9751,7 +9751,7 @@ export {
9751
9751
  *
9752
9752
  * const stream = Stream.void
9753
9753
  *
9754
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9754
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9755
9755
  * // { _id: 'Chunk', values: [ undefined ] }
9756
9756
  *
9757
9757
  * ```
@@ -9955,7 +9955,7 @@ export const withSpan: {
9955
9955
  * Stream.make("a", "b", "c")
9956
9956
  * )
9957
9957
  *
9958
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9958
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9959
9959
  * // { _id: 'Chunk', values: [ [ 1, 'a' ], [ 2, 'b' ], [ 3, 'c' ] ] }
9960
9960
  * ```
9961
9961
  *
@@ -9979,7 +9979,7 @@ export const zip: {
9979
9979
  * Stream.make("a", "b", "c")
9980
9980
  * )
9981
9981
  *
9982
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9982
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
9983
9983
  * // { _id: 'Chunk', values: [ [ 1, 'a' ], [ 2, 'b' ], [ 3, 'c' ] ] }
9984
9984
  * ```
9985
9985
  *
@@ -10003,7 +10003,7 @@ export const zip: {
10003
10003
  * Stream.make("a", "b", "c")
10004
10004
  * )
10005
10005
  *
10006
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10006
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10007
10007
  * // { _id: 'Chunk', values: [ [ 1, 'a' ], [ 2, 'b' ], [ 3, 'c' ] ] }
10008
10008
  * ```
10009
10009
  *
@@ -10062,7 +10062,7 @@ export const zipFlatten: {
10062
10062
  * defaultOther: "x"
10063
10063
  * })
10064
10064
  *
10065
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10065
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10066
10066
  * // { _id: "Chunk", values: [ [ 1, "a" ], [ 2, "b" ], [ 3, "c" ], [ 4, "x" ], [ 5, "x" ], [ 6, "x" ] ] }
10067
10067
  * ```
10068
10068
  *
@@ -10087,7 +10087,7 @@ export const zipAll: {
10087
10087
  * defaultOther: "x"
10088
10088
  * })
10089
10089
  *
10090
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10090
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10091
10091
  * // { _id: "Chunk", values: [ [ 1, "a" ], [ 2, "b" ], [ 3, "c" ], [ 4, "x" ], [ 5, "x" ], [ 6, "x" ] ] }
10092
10092
  * ```
10093
10093
  *
@@ -10114,7 +10114,7 @@ export const zipAll: {
10114
10114
  * defaultOther: "x"
10115
10115
  * })
10116
10116
  *
10117
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10117
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10118
10118
  * // { _id: "Chunk", values: [ [ 1, "a" ], [ 2, "b" ], [ 3, "c" ], [ 4, "x" ], [ 5, "x" ], [ 6, "x" ] ] }
10119
10119
  * ```
10120
10120
  *
@@ -10455,7 +10455,7 @@ export const zipAllSortedByKeyWith: {
10455
10455
  * onBoth: (n, s) => [n - s.length, s]
10456
10456
  * })
10457
10457
  *
10458
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10458
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10459
10459
  * // { _id: "Chunk", values: [ [ 0, "a" ], [ 1, "b" ], [ 2, "c" ], [ 4, "x" ], [ 5, "x" ], [ 6, "x" ] ] }
10460
10460
  * ```
10461
10461
  *
@@ -10481,7 +10481,7 @@ export const zipAllWith: {
10481
10481
  * onBoth: (n, s) => [n - s.length, s]
10482
10482
  * })
10483
10483
  *
10484
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10484
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10485
10485
  * // { _id: "Chunk", values: [ [ 0, "a" ], [ 1, "b" ], [ 2, "c" ], [ 4, "x" ], [ 5, "x" ], [ 6, "x" ] ] }
10486
10486
  * ```
10487
10487
  *
@@ -10514,7 +10514,7 @@ export const zipAllWith: {
10514
10514
  * onBoth: (n, s) => [n - s.length, s]
10515
10515
  * })
10516
10516
  *
10517
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10517
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10518
10518
  * // { _id: "Chunk", values: [ [ 0, "a" ], [ 1, "b" ], [ 2, "c" ], [ 4, "x" ], [ 5, "x" ], [ 6, "x" ] ] }
10519
10519
  * ```
10520
10520
  *
@@ -10555,7 +10555,7 @@ export const zipAllWith: {
10555
10555
  *
10556
10556
  * const stream = Stream.zipLatest(s1, s2)
10557
10557
  *
10558
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10558
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10559
10559
  * // { _id: "Chunk", values: [ [ 1, "a" ], [ 1, "b" ], [ 2, "b" ], [ 2, "c" ], [ 2, "d" ], [ 3, "d" ] ] }
10560
10560
  * ```
10561
10561
  *
@@ -10586,7 +10586,7 @@ export const zipLatest: {
10586
10586
  *
10587
10587
  * const stream = Stream.zipLatest(s1, s2)
10588
10588
  *
10589
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10589
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10590
10590
  * // { _id: "Chunk", values: [ [ 1, "a" ], [ 1, "b" ], [ 2, "b" ], [ 2, "c" ], [ 2, "d" ], [ 3, "d" ] ] }
10591
10591
  * ```
10592
10592
  *
@@ -10617,7 +10617,7 @@ export const zipLatest: {
10617
10617
  *
10618
10618
  * const stream = Stream.zipLatest(s1, s2)
10619
10619
  *
10620
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10620
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10621
10621
  * // { _id: "Chunk", values: [ [ 1, "a" ], [ 1, "b" ], [ 2, "b" ], [ 2, "c" ], [ 2, "d" ], [ 3, "d" ] ] }
10622
10622
  * ```
10623
10623
  *
@@ -10645,7 +10645,7 @@ export const zipLatest: {
10645
10645
  * Stream.fromSchedule(Schedule.spaced('4 millis')),
10646
10646
  * ).pipe(Stream.take(6), Stream.tap(Console.log))
10647
10647
  *
10648
- * // Effect.runPromise(Stream.runDrain(stream))
10648
+ * Effect.runPromise(Stream.runDrain(stream))
10649
10649
  * // Output:
10650
10650
  * // [ 0, 0, 0 ]
10651
10651
  * // [ 1, 0, 0 ]
@@ -10794,7 +10794,7 @@ export const zipRight: {
10794
10794
  * (n, s) => [n - s.length, s]
10795
10795
  * )
10796
10796
  *
10797
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10797
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10798
10798
  * // { _id: 'Chunk', values: [ [ 0, 'a' ], [ 1, 'b' ], [ 2, 'c' ] ] }
10799
10799
  * ```
10800
10800
  *
@@ -10819,7 +10819,7 @@ export const zipWith: {
10819
10819
  * (n, s) => [n - s.length, s]
10820
10820
  * )
10821
10821
  *
10822
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10822
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10823
10823
  * // { _id: 'Chunk', values: [ [ 0, 'a' ], [ 1, 'b' ], [ 2, 'c' ] ] }
10824
10824
  * ```
10825
10825
  *
@@ -10844,7 +10844,7 @@ export const zipWith: {
10844
10844
  * (n, s) => [n - s.length, s]
10845
10845
  * )
10846
10846
  *
10847
- * // Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10847
+ * Effect.runPromise(Stream.runCollect(stream)).then(console.log)
10848
10848
  * // { _id: 'Chunk', values: [ [ 0, 'a' ], [ 1, 'b' ], [ 2, 'c' ] ] }
10849
10849
  * ```
10850
10850
  *
@@ -10912,7 +10912,7 @@ export const zipWithChunks: {
10912
10912
  *
10913
10913
  * const stream = Stream.zipWithNext(Stream.make(1, 2, 3, 4))
10914
10914
  *
10915
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
10915
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
10916
10916
  * // [
10917
10917
  * // [ 1, { _id: 'Option', _tag: 'Some', value: 2 } ],
10918
10918
  * // [ 2, { _id: 'Option', _tag: 'Some', value: 3 } ],
@@ -10936,7 +10936,7 @@ export const zipWithNext: <A, E, R>(self: Stream<A, E, R>) => Stream<[A, Option.
10936
10936
  *
10937
10937
  * const stream = Stream.zipWithPrevious(Stream.make(1, 2, 3, 4))
10938
10938
  *
10939
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
10939
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
10940
10940
  * // [
10941
10941
  * // [ { _id: 'Option', _tag: 'None' }, 1 ],
10942
10942
  * // [ { _id: 'Option', _tag: 'Some', value: 1 }, 2 ],
@@ -10960,7 +10960,7 @@ export const zipWithPrevious: <A, E, R>(self: Stream<A, E, R>) => Stream<[Option
10960
10960
  *
10961
10961
  * const stream = Stream.zipWithPreviousAndNext(Stream.make(1, 2, 3, 4))
10962
10962
  *
10963
- * // Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
10963
+ * Effect.runPromise(Stream.runCollect(stream)).then((chunk) => console.log(Chunk.toArray(chunk)))
10964
10964
  * // [
10965
10965
  * // [
10966
10966
  * // { _id: 'Option', _tag: 'None' },
@@ -11003,7 +11003,7 @@ export const zipWithPreviousAndNext: <A, E, R>(
11003
11003
  *
11004
11004
  * const indexedStream = Stream.zipWithIndex(stream)
11005
11005
  *
11006
- * // Effect.runPromise(Stream.runCollect(indexedStream)).then(console.log)
11006
+ * Effect.runPromise(Stream.runCollect(indexedStream)).then(console.log)
11007
11007
  * // {
11008
11008
  * // _id: 'Chunk',
11009
11009
  * // values: [ [ 'Mary', 0 ], [ 'James', 1 ], [ 'Robert', 2 ], [ 'Patricia', 3 ] ]
@@ -11029,11 +11029,6 @@ export const zipWithIndex: <A, E, R>(self: Stream<A, E, R>) => Stream<[A, number
11029
11029
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
11030
11030
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
11031
11031
  *
11032
- * @see {@link bindTo}
11033
- * @see {@link bind}
11034
- * @see {@link bindEffect}
11035
- * @see {@link let_ let}
11036
- *
11037
11032
  * @example
11038
11033
  * ```ts
11039
11034
  * import * as assert from "node:assert"
@@ -11048,6 +11043,11 @@ export const zipWithIndex: <A, E, R>(self: Stream<A, E, R>) => Stream<[A, number
11048
11043
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
11049
11044
  * ```
11050
11045
  *
11046
+ * @see {@link bindTo}
11047
+ * @see {@link bind}
11048
+ * @see {@link bindEffect}
11049
+ * @see {@link let_ let}
11050
+ *
11051
11051
  * @category do notation
11052
11052
  * @since 2.0.0
11053
11053
  */
@@ -11063,11 +11063,6 @@ export const Do: Stream<{}> = internal.Do
11063
11063
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
11064
11064
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
11065
11065
  *
11066
- * @see {@link Do}
11067
- * @see {@link bindTo}
11068
- * @see {@link bindEffect}
11069
- * @see {@link let_ let}
11070
- *
11071
11066
  * @example
11072
11067
  * ```ts
11073
11068
  * import * as assert from "node:assert"
@@ -11082,6 +11077,11 @@ export const Do: Stream<{}> = internal.Do
11082
11077
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
11083
11078
  * ```
11084
11079
  *
11080
+ * @see {@link Do}
11081
+ * @see {@link bindTo}
11082
+ * @see {@link bindEffect}
11083
+ * @see {@link let_ let}
11084
+ *
11085
11085
  * @category do notation
11086
11086
  * @since 2.0.0
11087
11087
  */
@@ -11096,11 +11096,6 @@ export const bind: {
11096
11096
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
11097
11097
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
11098
11098
  *
11099
- * @see {@link Do}
11100
- * @see {@link bindTo}
11101
- * @see {@link bindEffect}
11102
- * @see {@link let_ let}
11103
- *
11104
11099
  * @example
11105
11100
  * ```ts
11106
11101
  * import * as assert from "node:assert"
@@ -11115,6 +11110,11 @@ export const bind: {
11115
11110
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
11116
11111
  * ```
11117
11112
  *
11113
+ * @see {@link Do}
11114
+ * @see {@link bindTo}
11115
+ * @see {@link bindEffect}
11116
+ * @see {@link let_ let}
11117
+ *
11118
11118
  * @category do notation
11119
11119
  * @since 2.0.0
11120
11120
  */
@@ -11135,11 +11135,6 @@ export const bind: {
11135
11135
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
11136
11136
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
11137
11137
  *
11138
- * @see {@link Do}
11139
- * @see {@link bindTo}
11140
- * @see {@link bindEffect}
11141
- * @see {@link let_ let}
11142
- *
11143
11138
  * @example
11144
11139
  * ```ts
11145
11140
  * import * as assert from "node:assert"
@@ -11154,6 +11149,11 @@ export const bind: {
11154
11149
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
11155
11150
  * ```
11156
11151
  *
11152
+ * @see {@link Do}
11153
+ * @see {@link bindTo}
11154
+ * @see {@link bindEffect}
11155
+ * @see {@link let_ let}
11156
+ *
11157
11157
  * @category do notation
11158
11158
  * @since 2.0.0
11159
11159
  */
@@ -11224,11 +11224,6 @@ export const bindEffect: {
11224
11224
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
11225
11225
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
11226
11226
  *
11227
- * @see {@link Do}
11228
- * @see {@link bind}
11229
- * @see {@link bindEffect}
11230
- * @see {@link let_ let}
11231
- *
11232
11227
  * @example
11233
11228
  * ```ts
11234
11229
  * import * as assert from "node:assert"
@@ -11243,6 +11238,11 @@ export const bindEffect: {
11243
11238
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
11244
11239
  * ```
11245
11240
  *
11241
+ * @see {@link Do}
11242
+ * @see {@link bind}
11243
+ * @see {@link bindEffect}
11244
+ * @see {@link let_ let}
11245
+ *
11246
11246
  * @category do notation
11247
11247
  * @since 2.0.0
11248
11248
  */
@@ -11257,11 +11257,6 @@ export const bindTo: {
11257
11257
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
11258
11258
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
11259
11259
  *
11260
- * @see {@link Do}
11261
- * @see {@link bind}
11262
- * @see {@link bindEffect}
11263
- * @see {@link let_ let}
11264
- *
11265
11260
  * @example
11266
11261
  * ```ts
11267
11262
  * import * as assert from "node:assert"
@@ -11276,6 +11271,11 @@ export const bindTo: {
11276
11271
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
11277
11272
  * ```
11278
11273
  *
11274
+ * @see {@link Do}
11275
+ * @see {@link bind}
11276
+ * @see {@link bindEffect}
11277
+ * @see {@link let_ let}
11278
+ *
11279
11279
  * @category do notation
11280
11280
  * @since 2.0.0
11281
11281
  */
@@ -11290,11 +11290,6 @@ export const bindTo: {
11290
11290
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
11291
11291
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
11292
11292
  *
11293
- * @see {@link Do}
11294
- * @see {@link bind}
11295
- * @see {@link bindEffect}
11296
- * @see {@link let_ let}
11297
- *
11298
11293
  * @example
11299
11294
  * ```ts
11300
11295
  * import * as assert from "node:assert"
@@ -11309,6 +11304,11 @@ export const bindTo: {
11309
11304
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
11310
11305
  * ```
11311
11306
  *
11307
+ * @see {@link Do}
11308
+ * @see {@link bind}
11309
+ * @see {@link bindEffect}
11310
+ * @see {@link let_ let}
11311
+ *
11312
11312
  * @category do notation
11313
11313
  * @since 2.0.0
11314
11314
  */
@@ -11338,11 +11338,6 @@ export {
11338
11338
  * 3. You can accumulate multiple `bind` statements to define multiple variables within the scope
11339
11339
  * 4. Inside the do simulation scope, you can also use the `let` function to define variables and bind them to simple values
11340
11340
  *
11341
- * @see {@link Do}
11342
- * @see {@link bindTo}
11343
- * @see {@link bind}
11344
- * @see {@link bindEffect}
11345
- *
11346
11341
  * @example
11347
11342
  * ```ts
11348
11343
  * import * as assert from "node:assert"
@@ -11355,8 +11350,13 @@ export {
11355
11350
  * Stream.let("sum", ({ x, y }) => x + y)
11356
11351
  * )
11357
11352
  * assert.deepStrictEqual(Effect.runSync(Stream.runCollect(result)), Chunk.of({ x: 2, y: 3, sum: 5 }))
11358
- *
11359
11353
  * ```
11354
+ *
11355
+ * @see {@link Do}
11356
+ * @see {@link bindTo}
11357
+ * @see {@link bind}
11358
+ * @see {@link bindEffect}
11359
+ *
11360
11360
  * @category do notation
11361
11361
  * @since 2.0.0
11362
11362
  */