Join Slack
Powered by
you could do way with some ifs, I guess… as in `va...
# codereview
m
menegatti
01/09/2018, 1:59 PM
you could do way with some ifs, I guess… as in
val topStackItem = myStack.takeUnless { it.isStackEmpty() }?.peek()
5
Views
Open in Slack
Previous
Next