-
Notifications
You must be signed in to change notification settings - Fork 359
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 isEven and isOdd to Basics #367
Comments
This is the policy on adding new stuff to core. I don't really believe the assertion that "Both functions are used quite often". To push this a bit further, can you come up with a list of languages and whether they have this? Like, for Python, Java, JavaScript, Ruby, OCaml, SML, Clojure, Scala, etc. do they have this imported by default? Or something else? If so, what is it? |
FWIW, Clojure, Racket, Common Lisp and Emacs Lisp do import this or similar functions by default. I created this thread, because from meta-issue on API changes I understood I should create a new issue for any proposal for core that is somewhat viable. Other than that, I'm pretty happy to use |
What about the other languages I asked about? So far sounds like a lisp thing. |
FWIW, I'm writing a little |
Yeah, that's the right way to go for now. |
👍 for having |
To me, (Also, some stuff got in the way, but I will continue work on the package soon. I'm basically translating |
Just like there's |
I wrote |
isEven
is referenced onBasics
docs, although the function is undefined. Both functions are used quite often, and they are tiny, so there's no trouble in adding them toBasics
. Yes, the user can write(\x -> x%2==0)
, butisEven
has little chance of name collision, used often and wouldn't require the user to write yet another small helper function.The text was updated successfully, but these errors were encountered: