|
Scala example source code file (EphemeralStreamTestJVM.scala)
The EphemeralStreamTestJVM.scala Scala example source code
package scalaz
import scalaz.std.anyVal._
object EphemeralStreamTestJVM extends SpecLite {
"foldLeft large stream" in {
val list = List.fill(10000000)(1)
val xs = EphemeralStream(list : _*)
Foldable[EphemeralStream].foldLeft(xs, 0)(_ + _) must_===(list.sum)
}
}
Other Scala examples (source code examples)Here is a short list of links related to this Scala EphemeralStreamTestJVM.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.