doc <- am_create()
doc$a <- 1
doc$b <- 2
doc$c <- 3
doc$d <- 4
# Get entries with keys in [b, c] -> b and c
range <- am_map_range(doc, AM_ROOT, "b", "c")
names(range) # "b" "c"
# Get all entries
all <- am_map_range(doc, AM_ROOT, "", "")
am_close(doc)
Run the code above in your browser using DataLab