Turns out the compiler rejects that with a "refutable pattern" error, because the args part of the filter/map closures do not handle the situation where the slice could be empty, which AFAIK can not occur when using windows/chunks/...
Maybe there has to be some special case handling for this pattern to be valid?
steveklabnik|7 years ago
Lev1a|7 years ago
Maybe there has to be some special case handling for this pattern to be valid?