It's pretty often that one needs to exclude some entries from slice by some keys
There's lo.Without which could be useful
But it's not always convenient cause it could be so that you have an entity and only its' keys
In that case it could be useful to have
Yeah, one could simply return the map from getBlackList() or use lo.Contains
But to return that map SliceToSet could still be useful and lo.Contains is not always optimal
And I guess there's lots of other applications of such a function
It's pretty often that one needs to exclude some entries from slice by some keys
There's
lo.Without
which could be useful But it's not always convenient cause it could be so that you have an entity and only its' keys In that case it could be useful to haveFor example:
Yeah, one could simply return the map from
getBlackList()
or uselo.Contains
But to return that mapSliceToSet
could still be useful andlo.Contains
is not always optimal And I guess there's lots of other applications of such a functionAlso seems like it could be useful adding