Closed adelbertc closed 11 years ago
Wouldn't that be better to have Scalaz provide an Iterable[T] => EphemeralStream[T]
function?
This function would be very buggy. Iterable[T] => EphemeralStream[T]
how would it look?
I am closing this issue for now because as Tony wrote there is no function which could provide Iterable[T] => EphemeralStream[T]
. I don't see how to implement length
for example.
It is more that such a function is dangerous, mixing non-strict evaluation with side-effects. That danger is well beyond any reasonable benefit. On 09/09/2013 3:01 PM, "Eric Torreborre" notifications@github.com wrote:
I am closing this issue for now because as Tony wrote there is no function which could provide Iterable[T] => EphemeralStream[T]. I don't see how to implement length for example.
— Reply to this email directly or view it on GitHubhttps://github.com/NICTA/scoobi/issues/290#issuecomment-24041184 .
Iterable[_]
, which is what is returned by thegroupBy
method, does not have a scalazApplicative
instance (for good reason). If I want to get all pairs between twoIterable[_]
's ideally I would like to doUsing
.toStream
, the left side will still be realized - if we can unfold anEphemeralStream
from the structure we can avoid that.