]> gitweb.factorcode.org Git - factor.git/blobdiff - core/io/io.factor
core: Change lines -> read-lines, contents -> read-contents, string-lines -> lines
[factor.git] / core / io / io.factor
index 9d20471b29ee0adf644f6cd1cd4e08771f175326..fc6c206e22e1a39f0f75fa02c4b5831660f134a1 100644 (file)
@@ -163,7 +163,8 @@ ERROR: invalid-read-buffer buf stream ;
         [ ] collector [ each-stream-line ] dip { } like
     ] with-disposal ; inline
 
-: lines ( -- seq )
+! Note: was `lines` before .99
+: read-lines ( -- seq )
     input-stream get stream-lines ; inline
 
 CONSTANT: each-block-size 65536
@@ -209,9 +210,11 @@ CONSTANT: each-block-size 65536
         [ stream-exemplar produce-as nip ] bi
     ] with-disposal ; inline
 
-: contents ( -- seq )
+: read-contents ( -- seq )
     input-stream get stream-contents ; inline
 
+ALIAS: contents read-contents
+
 : stream-copy* ( in out -- )
     [ stream-write ] curry each-stream-block ; inline