crystal
crystal copied to clipboard
Add `Set#select!`, `Set#reject!`, and `Set#map!`
I'm also adding:
Set#keep_if, used in the implementation ofSet#select!Set#delete_if, used in the implementation ofSet#reject!Set#filter!, an alias for#select!
Closes #9976
Please don't add the method name aliases. The Crystal standard library no longer features them.
The methods #select! and #reject! never return nil in Crystal. You could see this being the case in Array and Hash.