Indeed this is what I am looking for. I don’t know how views work, but one possible disadvantage is loosing the ability to create a collection and reuse all underlying methods. Going to look at this.
As a side note, after some more search I found that I already had asked a similar question. There, one of the collection gurus had said:
which, (as seen in the code above) still seems problematic because I have only access to an IterableOnce
.
I meant lazy in the sense of processing the sequence. Maybe their is a better word for this?
Thanks