]> gitweb.factorcode.org Git - factor.git/commitdiff
io: add an alias for lines, for easier backwards compatibility.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 26 Dec 2021 04:00:54 +0000 (20:00 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 26 Dec 2021 04:00:54 +0000 (20:00 -0800)
core/io/io.factor

index fc6c206e22e1a39f0f75fa02c4b5831660f134a1..df90ed12c852229ac198381b094bb6de9123b077 100644 (file)
@@ -163,10 +163,11 @@ ERROR: invalid-read-buffer buf stream ;
         [ ] collector [ each-stream-line ] dip { } like
     ] with-disposal ; inline
 
-! Note: was `lines` before .99
 : read-lines ( -- seq )
     input-stream get stream-lines ; inline
 
+ALIAS: lines read-lines
+
 CONSTANT: each-block-size 65536
 
 : (each-stream-block-slice) ( ... stream quot: ( ... block-slice -- ... ) block-size -- ... )