pop

fun pop(): Int

Removes the top element and returns its node id.