method
Value.Elements
Iterate immutable list items in order without making a slice.
Example
tags := store.List(store.String("news"), store.String("go"))
for item := range tags.Elements() {
text, _ := item.StringValue()
fmt.Println(text)
}Returns
An iterator over the list items in their stored order.
iter.Seq[Value]How it works
Non-lists yield no elements. The iterator keeps its snapshot and can be reused, including after an early stop.
Full signature
Related types
ValueAn immutable scalar, object, list, or populated document value.