lo icon indicating copy to clipboard operation
lo copied to clipboard

Add DifferenceBy for slices with any types

Open yesmishgan opened this issue 1 year ago • 8 comments

This request contains a new function to find the difference between two slices consisting of any elements using the callback function

yesmishgan avatar May 18 '24 19:05 yesmishgan

Hi, can you review it @samber ?

yesmishgan avatar May 18 '24 19:05 yesmishgan

this looks useful

miles-ton avatar Jul 15 '24 03:07 miles-ton

thank you! but i can't merge without @samber 's code review

yesmishgan avatar Aug 03 '24 09:08 yesmishgan

Note this completes part of the request under #411

takanuva15 avatar Aug 12 '24 18:08 takanuva15

I would really appreciate this functionality being built into lo!

druvv avatar Aug 20 '24 21:08 druvv

@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

takanuva15 avatar Aug 21 '24 21:08 takanuva15

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

takanuva15 avatar Aug 25 '24 21:08 takanuva15

@samber Hello! Can you review it? I want to contribute it and use in my projects to improve usability

yesmishgan avatar Sep 29 '24 11:09 yesmishgan