Open okkero opened 5 years ago
The documentation for Parser.int claims that it fails for the strings "0123" and "123a", however when I run those strings through Parser.int, I get Ok 0 and Ok 123 respectively.
Parser.int
Ok 0
Ok 123
Here is an ellie showcasing the behaviour: https://ellie-app.com/3Kq5dZ5ZBzFa1
I am not sure if this is intended behaviour or not, but at any rate there is a mismatch between documentation and behaviour.
The documentation for
Parser.int
claims that it fails for the strings "0123" and "123a", however when I run those strings throughParser.int
, I getOk 0
andOk 123
respectively.Here is an ellie showcasing the behaviour: https://ellie-app.com/3Kq5dZ5ZBzFa1
I am not sure if this is intended behaviour or not, but at any rate there is a mismatch between documentation and behaviour.