-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default value for readLines
shouldn't be 1
#12788
Labels
Comments
This confused me too a while ago. |
Are you not better off using |
io.lines() is always better except cases when it is not available for example in VM. |
Nowadays this: https://github.com/nim-lang/Nim/pull/12284/files#diff-93574743bf0f766ad08398709499ef6aR18 works in the VM, though its not |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was just doing Advent of Code and used
readLines
in a loop, I was confused to see it return a single line... https://nim-lang.org/docs/io.html#readLines%2CstringExample
Current Output
One line
Expected Output
All lines
Possible Solution
n
as a default argumentThe text was updated successfully, but these errors were encountered: