Join Slack
Powered by
I don’t think there is `asIterable` for an iterato...
# getting-started
o
orangy
02/17/2017, 9:20 PM
I don’t think there is
asIterable
for an iterator…
v
voddan
02/18/2017, 11:06 AM
orangy: right, silly me did not check it first
voddan
02/18/2017, 11:07 AM
But shouldn't it be available for consistency?
voddan
02/18/2017, 11:07 AM
asSequence
usually means lazy, which is the wrong idea here
o
orangy
02/18/2017, 11:15 AM
iterator can only be consumed once, so I think sequence is better suite here. Iterable would mean you can get iterator from it multiple times, which is wrong in this case
Open in Slack
Previous
Next