05AB1E icon indicating copy to clipboard operation
05AB1E copied to clipboard

Python-style truthify builtin `Ā` doesn't work on some empty strings

Open kcruijss opened this issue 2 years ago • 0 comments

Some empty strings result in 1 when using the Python-style truthify builtin Ā.

If we use an empty string directly (õ), it works fine and correctly results in 0. But if we use it on an empty input or on the maximum of an empty list it incorrectly results in 1. Try it online to reproduce.

I came across it in this codegolf answer of mine.

kcruijss avatar Feb 25 '22 08:02 kcruijss