map

abstract override fun <R> map(mapper: (T) -> R): IntIndexed<R>

Returns a new IntIndexed with the same index, and value transformed via mapper.