Hi, everyone.
I tried reading a
binary file in Yeti using `binReadFile filename (binReadAll 0)`, but
found that the returned list<number> does not behave normally and produces
unexpected results when you apply the function `drop 1 . find (== 10)`
to it. This does not happen if you compile an apparently
identical list into the program or apply `map id` to the list first. Did I run into a bug?
I've attached a shell
script that runs several different Yeti code snippets to demonstrate when the behavior occurs and doesn't, and a text file of the output I get
from the script. I expected the output from test 4 and 5 to be identical
to that from test 6, but, as you can see in the text file, it is
truncated. I've reproduced the results with OpenJDK 8 on two Linux
distributions and OpenJDK 6 and 8 on FreeBSD 11.
Best,
D. Bohdan