lo icon indicating copy to clipboard operation
lo copied to clipboard

feat: adding FromSlicePtrNotNil

Open samber opened this issue 1 year ago • 1 comments
trafficstars

Maybe we could name this helper differently.

Also, we could return a boolean when at least 1 nil value is detected and dropped. (see lo.FromAnySlice)

samber avatar Jul 26 '24 06:07 samber

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.48%. Comparing base (cb150f5) to head (0dabc9c). Report is 83 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #507      +/-   ##
==========================================
+ Coverage   94.46%   94.48%   +0.01%     
==========================================
  Files          17       17              
  Lines        2712     2718       +6     
==========================================
+ Hits         2562     2568       +6     
  Misses        148      148              
  Partials        2        2              
Flag Coverage Δ
unittests 94.48% <100.00%> (+0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Jul 26 '24 06:07 codecov-commenter

could be replaced by lo.FromSlicePtr(lo.WithoutEmpty(list))

samber avatar Jan 26 '25 17:01 samber