On Friday, 17 July 2015 at 09:07:29 UTC, Jarl André Hübenthal
wrote:
Or loop it. But its pretty nice to know that there is laziness
in D, but when I query mongo I expect all docs to be retrieved,
since there are no paging in the underlying queries? Thus,
having a lazy functionality on top of non lazy db queries seem
a bit off dont you think?
From the client point of view db is sort of lazy: data is
received from server as needed. Why would you want to put all
data into an array before processing it? Why can't you process it
from the range directly?