How to pass in a readable file (stream) to a Zig function?
Most of the example code in the Zig online docs is in the form of test blocks. Sadly, this means there aren't quite enough examples of how to write functions.
Given that one has a readable file, possibly including
stdin, what is the "ziggy" way to pass that to a function that will read input from it?
Should I pass a pointer? A copy? A reader? A pointer to a reader?
I recently watched Loris Cro's video on pointers/slices/const/etc. so I sort of understand that there might be some trickery, but I don't know Zig well enough to guess what the trickery might be.