Description Usage Arguments Value Examples
Computes the size of an object, i.e. the number of keys or <key, value> pairs depending on the object.
1 2 3 4 5 6 7 8 9 10 |
obj |
the object to get the size from |
returns the size of obj
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # get the size of a hashmap
h_map <- hashmap()
h_map[letters] <- rnorm(length(letters))
size(h_map)
# get the size of a fibonacci heap
f_heap <- fibonacci_heap()
f_heap <- insert(f_heap, letters[seq(3)], list(1, diag(3), rnorm(2)))
size(f_heap)
# get the size of a stack
s <- stack()
s <- insert(s, list(1))
size(s)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.