R/methods.R
length.am_doc.Rd
Returns the number of keys in the root map of an Automerge document.
# S3 method for class 'am_doc' length(x)
An Automerge document
Integer length
doc <- am_create() doc$a <- 1 doc$b <- 2 length(doc) # 2 #> [1] 2