lo
lo copied to clipboard
Add DifferenceBy for slices with any types
This request contains a new function to find the difference between two slices consisting of any elements using the callback function
Hi, can you review it @samber ?
this looks useful
thank you! but i can't merge without @samber 's code review
Note this completes part of the request under #411
I would really appreciate this functionality being built into lo!
@samber Seems this PR is a highly requested feature; there is already another duplicate PR just like this one here: https://github.com/samber/lo/pull/426/files
Did some more research and I realized there is another library with a massive slice util library, that includes this DifferenceBy function along with UnionBy. Worth a look: https://github.com/duke-git/lancet?tab=readme-ov-file#-18-slice-contains-some-functions-to-manipulate-slice----index
@samber Hello! Can you review it? I want to contribute it and use in my projects to improve usability