@tamme indeed, but I do want the index in this case (it's part of the return value), so I need enumerate() and max_by_key() and at that point it becomes messier to my eyes ๐คทโโ๏ธEDIT: although I guess I can use enumerate and the same max, and that's what you meant with mixing for an iterators ๐ค