(length: number)
| 17 | TArray.fromIterable(Array.from({ length: blocks * length }, (_, i) => (i % length) + 1)) |
| 18 | |
| 19 | const makeStair = (length: number): STM.STM<TArray.TArray<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))) |