@@ -25,7 +25,7 @@ package scala.sys {
25
25
*
26
26
* {{{
27
27
* import scala.sys.process._
28
- * "ls" #| "grep .scala" #&& Seq("sh", "-c", "scalac *.scala") #|| "echo nothing found" lineStream
28
+ * "ls" #| "grep .scala" #&& Seq("sh", "-c", "scalac *.scala") #|| "echo nothing found" lazyLines
29
29
* }}}
30
30
*
31
31
* We describe below the general concepts and architecture of the package,
@@ -92,7 +92,7 @@ package scala.sys {
92
92
*
93
93
* - Return status of the process (`!` methods)
94
94
* - Output of the process as a `String` (`!!` methods)
95
- * - Continuous output of the process as a `Stream [String]` (`lineStream ` methods)
95
+ * - Continuous output of the process as a `LazyList [String]` (`lazyLines ` methods)
96
96
* - The `Process` representing it (`run` methods)
97
97
*
98
98
* Some simple examples of these methods:
@@ -106,10 +106,10 @@ package scala.sys {
106
106
* val dirContents = "ls".!!
107
107
*
108
108
* // This "fire-and-forgets" the method, which can be lazily read through
109
- * // a Stream [String]
110
- * def sourceFilesAt(baseDir: String): Stream [String] = {
109
+ * // a LazyList [String]
110
+ * def sourceFilesAt(baseDir: String): LazyList [String] = {
111
111
* val cmd = Seq("find", baseDir, "-name", "*.scala", "-type", "f")
112
- * cmd.lineStream
112
+ * cmd.lazyLines
113
113
* }
114
114
* }}}
115
115
*
@@ -163,12 +163,12 @@ package scala.sys {
163
163
* }
164
164
*
165
165
* // This "fire-and-forgets" the method, which can be lazily read through
166
- * // a Stream [String], and accumulates all errors on a StringBuffer
167
- * def sourceFilesAt(baseDir: String): (Stream [String], StringBuffer) = {
166
+ * // a LazyList [String], and accumulates all errors on a StringBuffer
167
+ * def sourceFilesAt(baseDir: String): (LazyList [String], StringBuffer) = {
168
168
* val buffer = new StringBuffer()
169
169
* val cmd = Seq("find", baseDir, "-name", "*.scala", "-type", "f")
170
- * val lineStream = cmd lineStream_ ! ProcessLogger(buffer append _)
171
- * (lineStream , buffer)
170
+ * val lazyLines = cmd lazyLines_ ! ProcessLogger(buffer append _)
171
+ * (lazyLines , buffer)
172
172
* }
173
173
* }}}
174
174
*
0 commit comments