Streamer is a library for converting collections to streams lazily
check out the note on toStream. "Will not terminate for infinite collections". an eagerly evaluated conversion to streams is crazy.
nope
yep, assuming your iterator doesn't mutate
ugh no just implement iterable
ok sure
import com.mosesn.streamer.Streamer
val x = (0 until 10).toList
val y = Streamer(x)
import com.mosesn.streamer.StreamConverters._
val x = (0 until 10).toList
val y = x.toLazyStream
pretty sure this is an anti-pattern. you'll use StreamConverters and you'll like it.
file a github issue. I probably just didn't think of it.
probably. this is almost no code. this was mostly a learning exercise for scala's stream api.
resolvers += "sonatype" at "https://oss.sonatype.org/content/repositories/releases/"
libraryDependencies ++= Seq("com.mosesn" %% "streamer" % "0.0.1")
file a github issue