(self: Chunk<Option<A>>)
| 1128 | * **Example** (Flat mapping chunks) |
| 1129 | * |
| 1130 | * ```ts import.meta.vitest |
| 1131 | * import { Chunk } from "effect" |
| 1132 | * |
| 1133 | * const chunk = Chunk.make(1, 2, 3) |
| 1134 | * const duplicated = Chunk.flatMap(chunk, (n) => Chunk.make(n, n)) |
| 1135 | * Chunk.toArray(duplicated) // => [1, 1, 2, 2, 3, 3] |
| 1136 | * |
| 1137 | * // Flattening nested arrays |
| 1138 | * const words = Chunk.make("hello", "world") |
| 1139 | * const letters = Chunk.flatMap( |
| 1140 | * words, |
| 1141 | * (word) => Chunk.fromIterable(word.split("")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…