powered by
Returns all values from an Automerge map or list as an R list.
am_values(doc, obj)
R list of values
An Automerge document
An Automerge object ID, or AM_ROOT for the document root
AM_ROOT
doc <- am_create() am_put(doc, AM_ROOT, "a", 1) am_put(doc, AM_ROOT, "b", 2) am_put(doc, AM_ROOT, "c", 3) values <- am_values(doc, AM_ROOT) values # list(1, 2, 3) am_close(doc)
Run the code above in your browser using DataLab