I’m reading file into a byte array, however the byte array has some trailing 0s which I would like to remove (return new byte array without the 0s). But byte array is not a listish thing so I cannot use filter/remove/map on it.
Is the only solution to use recursion over the byte array?
Thanks!
You should be able to use sequence operations on byte arrays: