https://twitter.com/kotlin/status/1268565689012555777
Do you find yourself often adding to both ends of a list? Try using a double-ended queue – Deque for short! This new experimental addition to the Kotlin Standard library in 1.3.70 works on all platforms – and most importantly, in common Kotlin code. #KotlinTips https://t.co/cRQLcmvu6i
Twitter
m
Matteo Mirk
06/04/2020, 3:36 PM
Love the examples with vegetable emojis 💚
c
Colton Idle
06/08/2020, 2:03 AM
I don't typically use a queue, but wasn't a Dequeue pretty standard in java. Could you not use a deque in kotlin?
m
Matteo Mirk
06/08/2020, 8:13 AM
Not everyone learning Kotlin comes from Java 🙂
c
Colton Idle
06/10/2020, 12:30 AM
@Matteo Mirk well that was sort of my question. There was no way to use a deque? I thought that was the only queue impl in java too. So now I'm just curious what kotlin users use for queue.
m
Matteo Mirk
06/10/2020, 7:35 AM
Oh sorry I didn’t quite understand your initial question… I’m not completely sure but this implementation is completely Kotlin multi-platform since v1.3, but in Kotlin/JVM you could as well use Java Collections. Does this answer your question?