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

fix: (-some-pred []) should return false #1101

Merged
merged 2 commits into from
Aug 28, 2024
Merged

fix: (-some-pred []) should return false #1101

merged 2 commits into from
Aug 28, 2024

Conversation

opqdonut
Copy link
Member

@opqdonut opqdonut commented Aug 28, 2024

Previously, it was returning false in cljs but true in clj. Now it
returns false in both.

This is in line with (or) returning nil and (and) returning true in
clojure.

fixes #751

Previously, it was returning false in cljs but true in clj. Now it
returns false in both.

This is in line with (or) returning nil and (and) returning true in
clojure.

fixes #751
@opqdonut
Copy link
Member Author

simplified the implementation, but now it fails on babashka...

@ikitommi ikitommi merged commit b91fc18 into master Aug 28, 2024
9 checks passed
@ikitommi
Copy link
Member

Thanks!

@opqdonut opqdonut deleted the fix/some-pred branch August 29, 2024 06:48
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

Successfully merging this pull request may close these issues.

Incorrect base case for -some-pred
2 participants