-
Notifications
You must be signed in to change notification settings - Fork 265
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 const function #282
Comments
👍 I also commonly have a use for the |
Hmm, good question. I think I'd prefer the more general It seems like it could generalize to more uses, but I guess I don't have a strong opinion. |
I also think the |
I haven't found a function in toolz to replicate Haskell's
const
function, that creates a function that returns a constant value.Example usage would be
Unless I'm missing an existing function, would it be worthwhile to add something similar to the library?
The text was updated successfully, but these errors were encountered: