16 lines
743 B
Plaintext
16 lines
743 B
Plaintext
! Copyright (C) 2006 Chris Double.
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: help lazy-lists sequences ;
|
|
|
|
HELP: lcontents
|
|
{ $values { "stream" "a stream" } }
|
|
{ $description "Returns a lazy list of all characters in the file. " { $link car } " returns the next character in the file, " { $link cdr } " returns the remaining characters as a lazy list. " { $link nil? } " indicates end of file." }
|
|
{ $see-also llines } ;
|
|
|
|
HELP: llines
|
|
{ $values { "stream" "a stream" } }
|
|
{ $description "Returns a lazy list of all lines in the file. " { $link car } " returns the next lines in the file, " { $link cdr } " returns the remaining lines as a lazy list. " { $link nil? } " indicates end of file." }
|
|
{ $see-also lcontents } ;
|
|
|