plenary.nvim icon indicating copy to clipboard operation
plenary.nvim copied to clipboard

feat: add `memoize.lua`.

Open UserIsntAvailable opened this issue 3 years ago • 0 comments

Credits goes to: https://github.com/kikito/memoize.lua

This add a memoize function that lets users cache return values from a function passed as an argument.

It is pretty much a copy paste of the that kikito already wrote, with some changes to follow the stylua formatting.

This technically could go to functional.lua, but it would be probably better to have it in its own file.

UserIsntAvailable avatar Oct 04 '22 17:10 UserIsntAvailable