-
Notifications
You must be signed in to change notification settings - Fork 372
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
get rid of zipwith in favor of map #927
Comments
I'm in favor of removing |
👍 Anyone want to fire up a PR to drop zipwith? |
Yeah, this was entirely my fault. Up till then, I had used C++ and Haskell more than Python (even though that's changed), so I never realized that |
#929 will also remove
I imagine that most Hy users not familiar with Python would miss that. Maybe even some Python users haven't noticed. I'm not sure what to do about that. It's still redundant and should be removed. Perhaps we could point it out in the tutorial or something. Perhaps we should re-document all Python builtins, or at least feature link to that page in the Python docs prominently. Haskell's prelude and Clojure's core have a lot of useful functions for FP. I wonder if we should port more of them to Hy core. I also wonder how much of that Python already supports somehow. |
Ref. #240
What is
zipwith
doing thatmap
doesn't already do? I triedzipwith
's unit tests usingmap
instead. Works perfectly:If
zipwith
has some other feature I'm not seeing, it should be unit tested. Otherwise, can we get rid of it please?The text was updated successfully, but these errors were encountered: