Vocabulary lists .
lazy Inputs Outputs Word description Returns a lazy list of all lines in the file.
car returns the next lines in the file,
cdr returns the remaining lines as a lazy list.
nil? indicates end of file.
See also lcontents Examples USING: io io.encodings.utf8 io.files lists lists.lazy namespaces
prettyprint ;
"resource:LICENSE.txt" utf8 [
1 lfrom input-stream get llines lzip cdr car .
] with-file-reader{ 2 "All rights reserved." }
Definition
This documentation was generated offline from a
load-all
image. If you want, you can also
browse the documentation from within the UI developer tools . See
the Factor website
for more information.
Factor 0.101 x86.64 (2287, heads/master-f4b0c147f7, Dec 15 2024 19:35:07)