Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Extract code for reading a line at a time, from head/tail/wc builtins #60

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

AtkinsSJ
Copy link
Contributor

fileLines() is slightly different from what these utilities were doing: it exposes the lines as a generator so that they can be iterated. Internally it still reads the entire input files, but in future it can be modified to only read one line at a time, without having to modify the code that uses it.

fileLines() is slightly different from what these utilities were doing:
it exposes the lines as a generator so that they can be iterated.
Internally it still reads the entire input files, but in future it can
be modified to only read one line at a time, without having to modify
the code that uses it.
@AtkinsSJ AtkinsSJ mentioned this pull request Mar 13, 2024
@KernelDeimos KernelDeimos merged commit 56be4f1 into HeyPuter:trunk Mar 14, 2024
3 checks passed
@AtkinsSJ AtkinsSJ deleted the read-lines branch March 14, 2024 17:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants