Closed tmhglnd closed 1 year ago
Instead of providing seperate arguments per fill value it should also accept an array and generate from there:
Original with separate arguments
Gen.fill(10, 2, 15, 3, 20, 4); //=> [ 10, 10, 15, 15, 15, 20, 20, 20, 20 ]
When using an array it returns [ 0 ]
Gen.fill([10, 20, 2, 15, 3, 20, 4]); //=> [ 0 ]
This should actually result in
Gen.fill([10, 20, 2, 15, 3, 20, 4]); //=> [ 10, 10, 15, 15, 15, 20, 20, 20, 20 ]
Fixed in 5113ed891ea19dae47cbaf6b044029c0ae6e29d6
Instead of providing seperate arguments per fill value it should also accept an array and generate from there:
Original with separate arguments
When using an array it returns [ 0 ]
This should actually result in