![]() |
The subtract() is an inbuilt method in Ruby returns the set after deleting all the objects that appear in the enum that is passed.
Example 1:
Output: Set: {12, 78, 98} Example 2:
Output: Set: {4, 6, 10} |
Reffered: https://www.geeksforgeeks.org
Ruby |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 9 |