I passed an empty seq to the fill proc in algorithm module.
I expected that the seq do not change the seq, but it failed with IndexError.
The description of the fill seq is fills the array a with value. (link)
Is this a correct behavior?
import algorithm
var a = newSeq[int](0)
a.fill(123) # Error: unhandled exception: value out of range: -1 [RangeError]
Thank you.