ysfk (Yosfik Alqadri)
- Login: ysfk
- Registered on: 07/15/2018
- Last sign in: 08/23/2018
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 0 | 0 |
Activity
08/22/2018
-
09:48 AM Ruby Bug #15001: Peek causes cursor to advance when enumerating the lines of a file
- with slight modification of the above code,
~~~ ruby
e = File.open("f").each_line
p e.each.to_a
e.peek
p e.each.to_a
~~~
it will give following result
~~~ text
["1\n", "2\n", "3\n"]
Traceback (most recent call last):
1: from ...