How Add Elements an Array and Automatically Remove Duplicates in Ruby
- Categories:
- ruby
Operator |=
is bitwise OR assignment in Ruby. While working with Array, using |=
operator will automatically add elements and remove duplicates.
- Tags:
- #ruby
Sponsored Links
- Register to Digital Ocean cloud with this link and get $200 credit
- Looking for cheap CDN? Bunny is the answer
- Alternative Cloud besides AWS and Digital Ocean