(length: number)
| 20 | TArray.fromIterable(Array.from({ length }, (_, i) => i + 1)) |
| 21 | |
| 22 | const makeStairWithHoles = (length: number): STM.STM<TArray.TArray<Option.Option<number>>> => |
| 23 | TArray.fromIterable(Array.from({ length }, (_, i) => i % 3 === 0 ? Option.none() : Option.some(i))) |
| 24 | |
| 25 | const makeTArray = <A>(length: number, value: A): STM.STM<TArray.TArray<A>> => |
| 26 | TArray.fromIterable(Array.from({ length }, () => value)) |