Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Stream.junk has no effect on a Stream.of_channel until we use Stream.next #7769
Original bug ID: 7769
On a stream made from a file, using Stream.of_channel, the function Stream.junk : 'a Stream.t -> unit
It behaves normally on a stream made from a string.
Here is a piece of code that demonstrates this strange behaviour.
Steps to reproduce
#create a file
execute the uploaded file