powered by
"length"(x)
empty
d <- rdeque() d <- insert_front(d, "a") print(length(d)) # 1 d <- insert_back(d, "b") print(length(d)) # 2
Run the code above in your browser using DataLab