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 memoizeWith #736

Closed
jirutka opened this issue Jun 25, 2024 · 5 comments
Closed

Add memoizeWith #736

jirutka opened this issue Jun 25, 2024 · 5 comments

Comments

@jirutka
Copy link
Contributor

jirutka commented Jun 25, 2024

Can you please add function memoizeWith?

@selfrefactor
Copy link
Owner

I didn't add it on purpose as it is hard to imagine for me how I can use it in the context of R.pipe/R.compose. If you provide such example, I'll be happy to add it.

@jirutka
Copy link
Contributor Author

jirutka commented Jul 6, 2024

I don’t understand, why do you need to use it in the context of R.pipe/R.compose? It’s a decorator function to add memoization/caching to the decorated function.

@selfrefactor
Copy link
Owner

what I mean is that most of functions in Ramda/Rambda should be used as part of pipe, otherwise these libraries becomes just another Lodash.

@selfrefactor
Copy link
Owner

Also, keeping state is in my opinion shouldn't be implemented in FP library. I hope you do understand.

@jirutka
Copy link
Contributor Author

jirutka commented Jul 7, 2024

Yes, I understand, it makes sense.

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

No branches or pull requests

2 participants