This is an alias for am_put() with insert semantics for lists.
For lists, am_put() with a numeric index replaces the element
at that index, while am_insert() shifts elements to make room.
Arguments
- doc
An Automerge document
- obj
An Automerge object ID (must be a list)
- pos
Numeric index (1-based, like R vectors) where to insert, or
"end"to append- value
The value to store. Supported types:
NULL- stores nullLogical - stores boolean (must be scalar)
Integer - stores integer (must be scalar)
Numeric - stores double (must be scalar)
Character - stores string (must be scalar)
Raw - stores bytes
AM_OBJ_TYPE_LIST/MAP/TEXT- creates nested object