Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Remove to remove an item from a slice #180

Closed
wants to merge 1 commit into from

Conversation

MarkRosemaker
Copy link

This PR adds a function to remove an element from a slice.

h/t to https://yourbasic.org/golang/delete-element-slice/

@codecov-commenter
Copy link

codecov-commenter commented Jul 24, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.43%. Comparing base (c9f230d) to head (95bf3bc).
Report is 222 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #180      +/-   ##
==========================================
+ Coverage   90.36%   90.43%   +0.07%     
==========================================
  Files          13       13              
  Lines        1495     1506      +11     
==========================================
+ Hits         1351     1362      +11     
  Misses        141      141              
  Partials        3        3              
Flag Coverage Δ
unittests 90.43% <100.00%> (+0.07%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samber
Copy link
Owner

samber commented Jul 24, 2022

Hi @MarkRosemaker and thanks for your first contribution.

Could you please return a new slice instead of modifying the collection?

@samber samber added the mutable label Jun 29, 2024
@MarkRosemaker MarkRosemaker closed this by deleting the head repository Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants