powered by
"length"(x)
empty
s <- rstack() s <- insert_top(s, "a") print(length(s)) # 1 s <- insert_top(s, "b") print(length(s)) # 2
Run the code above in your browser using DataLab