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

Update docs for memoizeWith #2717

Merged
merged 2 commits into from
Nov 26, 2018
Merged

Update docs for memoizeWith #2717

merged 2 commits into from
Nov 26, 2018

Conversation

peoplenarthax
Copy link
Contributor

The documentation for memoizeWith was not updated when memoize was removed.

This PR simply removes the reference to memoize.

R.memoize does not exist anymore. Update the documentation with no reference to R.memoize
@CrossEye
Copy link
Member

Thank you. Good catch!

@CrossEye CrossEye merged commit ed3c3b5 into ramda:master Nov 26, 2018
* create the cache key under which the results of the function to be memoized
* will be stored. Care must be taken when implementing key generation to avoid
* clashes that may overwrite previous entries erroneously.
* Takes an additional function that will be applied to a given argument set
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional is no longer applicable here now that Memoize doesn't exist. Perhaps we should adapt the docs from memoize since we can't reference them anymore:

/**
 * Creates a new function that, when invoked, caches the result of calling `fn`
 * for a given argument set and returns the result. Subsequent calls to the
 * memoized `fn` with the same argument set will not result in an additional
 * call to `fn`; instead, the cached result for that set of arguments will be
 * returned.
*/

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.

None yet

3 participants