Created
November 9, 2021 23:11
-
-
Save underhilllabs/724c35c1971d25d459237cfbcf5e1d36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.class_eval do | |
def delete_elements_in(ary) | |
ary.each do |x| | |
if index = index(x) | |
delete_at(index) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment