You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to call IteratorInterfaceExtensions.getiterator on t and then iterate over the thing that is returned by that (see here):
t =load(filename, sheet)
for row ingetiterator(t)
@show row
end
should work.
We could probably also change things here so that the thing returned by load can be iterated directly. It would change the story a bit, though, because right now load is essentially lazy, and we wanted to make the thing returned by load be iterable, it would need to have all the necessary column information in its type, and for that it would have to look at the content of the file...
Ah, I wasn't aware of IteratorInterfaceExtensions. I just found it odd that you could call collect on it, but not iterate over it (since collect is defined as "collecting an iterator").
Yeah, that is probably not super consistent... But I use collect so often, that I just added a method to collect. That in turn then calls getiterator and the normal collect.
gives
The text was updated successfully, but these errors were encountered: