Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kcruijss opened this issue Feb 25, 2022 · 0 comments
Open

Comments

@kcruijss
Copy link

kcruijss commented Feb 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant