nodesIn
The same, materialised.
For a caller who wants the count, or an index into it, or to iterate twice. O(nodes) in memory where forEachNodeIn is O(1). The nodes it holds are still views and the lifetime rule on forEachNodeIn applies to them unchanged: the list outlives the call, the bytes behind the values do not.