Also, won't this trigger a warning of not used variable `k`? If so, you might wanna change `k` to `_` or `_k` to avoid it.