Returns the number of elements in an rdeque.
## S3 method for class 'rdeque' length(x)
rdeque to get the length of.
Runs in O(1) time, as this information is stored seperately and updated on every insert/remove.
a vector of length 1 with the number of elements.
empty for checking whether an rdeque is empty.
1 2 3 4 5