prefer-nth Prefer nth over drop followed by first Calling first after drop builds an adapter solely to consume its first value. Instead, you SHOULD use nth to skip preceding values and return the selected value. - Category: style - Level: warning - Fix: automatic - Scope: module Reported import { Iterator } from "destack:iter"; function select(values: Iterator, index: isize): int32 | undefined { return values.drop(index).first(); } Accepted import { Iterator } from "destack:iter"; function select(values: Iterator, index: isize): int32 | undefined { return values.nth(index); } Prior art - Clippy ยท iterskipnext language/linter/src/rules/style/prefernth.rs:8