How about `map.with_index`?