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 (2285, heads/master-efda6dad2f, Nov 20 2024 16:02:37)