jeggy
03/02/2020, 5:56 PMstackOf("value 1", "value 2")
Shawn
03/02/2020, 6:00 PMfun <E> MutableList<E>.push(element: E) = add(element)
fun <E> MutableList<E>.pop() = removeAt(lastIndex)
a stack by any other name
jw
03/02/2020, 6:03 PMShawn
03/02/2020, 6:05 PMjw
03/02/2020, 6:07 PMjeggy
03/02/2020, 6:09 PMStack<String>()
.
Was just wondering if there was any reason for it not being in the stdlib as a Stack is kinda common to use.
Thanks for the response and I'm looking forward to try out the ArrayDeque
in the future 🙂jw
03/02/2020, 6:26 PMFleshgrinder
03/03/2020, 9:23 AMjimn
03/04/2020, 10:19 AM