Reads the value at an index in the replica live view.
Wasm resolves the visible index to a TypeScript-owned value reference.
Mutating that value directly can mutate replica state and should only be
done when the caller owns an independent value object. Out-of-bounds and
empty list reads resolve to undefined instead of throwing.
Index in the live list.
Replica to read from.
targetIndex, or undefined when
no value is present.Time complexity: O(d), worst case O(n)
Space complexity: O(1)
Exports the live-view read primitive.