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

add thread_some function (some-> macro) #379

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fominok
Copy link

@fominok fominok commented Aug 4, 2017

In Clojure there is a some-> macro, which acts like -> (thread-first), but without NullPointerException (or something like unsupported operand type(s) for +: 'NoneType' and 'int' for toolz). If one of forms returns nil(None), computation stops with nil as a result. This PR offers such functionality for toolz.

In order not to implement something like Maybe monad for NoneType I find some-> macro in toolz very helpful.

https://clojuredocs.org/clojure.core/some-%3E

@fominok
Copy link
Author

fominok commented Jul 1, 2019

Any thoughts after two years?

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.

1 participant