Closed GioeleBucci closed 4 months ago
As per title, I noticed that the list.window function goes into an infinite loop if 0 is passed as second argument:
list.window
list.window([1, 2, 3], -1) // [] list.window([1, 2, 3], 0) // infinite loop!
Since it defaults to returning an empty list when n is negative, i thought the same approach could be used for 0 as well.
n
Thank you
As per title, I noticed that the
list.window
function goes into an infinite loop if 0 is passed as second argument:Since it defaults to returning an empty list when
n
is negative, i thought the same approach could be used for 0 as well.