Ellen Spertus
09/18/2023, 2:39 AMIntRange
and IntProgression
don't support the get()
operator like List
does. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/get.htmlJacob
09/18/2023, 4:14 AMhfhbd
09/18/2023, 7:05 AMEllen Spertus
09/19/2023, 6:32 PMelementAt()
method.
Looking at the documentation, I see that elementAt()
is terminal, which answers my underlying unstated question of the difference between get()
and elementAt()
.Ellen Spertus
09/19/2023, 6:33 PMJacob
09/19/2023, 7:12 PMJacob
09/19/2023, 7:14 PM