https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
s

Scott Odle

12/07/2023, 2:44 PM
Silly question: did
MutableList.addLast
get removed/renamed recently? My solutions for days 3 and 4 worked great until yesterday, but after upgrading IDEA yesterday they refused to build until I replaced
addLast
with
add
.
j

Jakub Gwóźdź

12/07/2023, 2:58 PM
was it ever there? Api says it’s for ArrayDeque
s

Scott Odle

12/07/2023, 3:07 PM
weird. it totally worked a few days ago 🤷
n

Neil Banman

12/07/2023, 6:36 PM
I'm still on Kotlin 1.8 and
MutableLists
don't have
addLast
s

Scott Odle

12/07/2023, 6:36 PM
Weird. No idea how this ever worked.
j

Jakub Gwóźdź

12/08/2023, 5:40 AM
maybe the code you called it on previously returned
ArrayDeque
and then because of some reasons you generalized it to return
MutableList
?
d

Dan Fingal-Surma

12/09/2023, 4:52 AM
It's part of the Deque interface which LinkedList also implements