Silly question: did `MutableList.addLast` get remo...
# advent-of-code
s
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
was it ever there? Api says it’s for ArrayDeque
s
weird. it totally worked a few days ago 🤷
n
I'm still on Kotlin 1.8 and
MutableLists
don't have
addLast
s
Weird. No idea how this ever worked.
j
maybe the code you called it on previously returned
ArrayDeque
and then because of some reasons you generalized it to return
MutableList
?
d
It's part of the Deque interface which LinkedList also implements