| am_length | R Documentation |
Returns the number of key-value pairs in a map or elements in a list.
am_length(doc, obj)
doc |
An Automerge document |
obj |
An Automerge object ID, or |
Integer length/size
doc <- am_create()
am_put(doc, AM_ROOT, "a", 1)
am_put(doc, AM_ROOT, "b", 2)
len <- am_length(doc, AM_ROOT)
len # 2
am_close(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.