Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object Main extends App {
- // import java.io.File
- def getPath(s: String): String = "home/ramadokayano/Development/Scala/FhabV2/img/in/train"
- def xrange(lo: Int, hi: Int): Stream[Int] = {
- println(lo)
- if(lo >= hi) Stream.empty
- else Stream.cons(lo, xrange(lo + 1, hi))
- }
- lazy val test = xrange(0, 999999)
- test(7)
- println(" ")
- (test.slice(0, 14).count(_ < 5)) >= 3
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement