method
Value.ListItem
Read one immutable list item without copying the list.
Example
tags := store.List(store.String("news"))
first, ok := tags.ListItem(0)Arguments
| Argument | Type | Description |
|---|---|---|
index | int | The zero-based list position. |
Returns
The item and true, or false for a non-list or an out-of-range index.
(Value, bool)Full signature
Related types
ValueAn immutable scalar, object, list, or populated document value.