doc <- am_create()
doc$items <- list("a", "b", "c", "d", "e")
items <- doc$items
# Get elements 2 through 4 -> "b", "c", "d"
range <- am_list_range(doc, items, 2, 4)
length(range) # 3
am_close(doc)
Run the code above in your browser using DataLab