nit: `slice!(0,length)` for less allocations and method calls.