Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Ruby
1.2K+ articles
Ruby-Methods
926+ articles
Ruby Collections
144+ articles
Ruby Set-class
35 posts
Recent Articles
Popular Articles
Ruby | Set divide() function
Last Updated: 07 January 2020
The divide() is an inbuilt method in Ruby returns a set of sets. It is divided according to the condition that is given by the blocks. In case they donot satisfy the give...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set empty?() function
Last Updated: 07 January 2020
The empty?() is an inbuilt method in Ruby returns true if the set is empty or it returns false.Syntax: s1.empty?()Parameters: The function does not takes any parameter.Re...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set >= method
Last Updated: 07 January 2020
The = is an inbuilt method in Ruby that returns true if a set if a superset of another set. If it is not a superset, then it returns false. Syntax: s1 = s2.nameParameters...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set superset? function
Last Updated: 07 January 2020
The superset? is an inbuilt method in Ruby that returns true if a set if a superset of another set. If it is not a superset, then it returns false. Syntax: s1.superset?(s...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set subtract() function
Last Updated: 07 January 2020
The subtract() is an inbuilt method in Ruby returns the set after deleting all the objects that appear in the enum that is passed.Syntax: s1_name.subtract(enum)Parameters...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set <= method
Last Updated: 07 January 2020
The = is an inbuilt method in Ruby returns true if the set is a subset of the given set.Syntax: s1_name = s2_nameParameters: The function takes a mandatory parameter with...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set subset? function
Last Updated: 07 January 2020
The subset?() is an inbuilt method in Ruby returns true if the set is a subset of the given set.Syntax: s1_name.subset?(s2_name)Parameters: The function takes a mandatory...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set proper_superset? function
Last Updated: 07 January 2020
The proper_superset? is an inbuilt method in Ruby that returns true if a set if a proper superset of another set. If it is not a proper superset, then it returns false. S...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set proper_subset?() function
Last Updated: 07 January 2020
The proper_subset? is an inbuilt method in Ruby that returns true if a set if a proper subset of another set. If it is not a proper subset, then it returns false. Syntax:...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set > method
Last Updated: 07 January 2020
The is an inbuilt method in Ruby that returns true if a set if a proper superset of another set. If it is not a proper superset, then it returns false. Syntax: s1.name ...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set reset() function
Last Updated: 07 January 2020
The reset() is an inbuilt method in Ruby resets the internal state after modification to existing elements and returns self. The elements will be reindexed and deduplicat...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set replace() function
Last Updated: 07 January 2020
The replace() is an inbuilt method in Ruby which replaces the contents of the set with the contents of the given enumerable object and returns self.Syntax: s1.replace(enu...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set merge() function
Last Updated: 07 January 2020
The merge() is an inbuilt method in Ruby returns the new set after merging the passed objects into a set. Syntax: s1_name.merge(object)Parameters: The function accepts a ...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set member?() function
Last Updated: 07 January 2020
The member?() is an inbuilt method in Ruby returns true if the set contains the given object. It returns false if it does not contains the given object.Syntax: s1_name.me...
read more
Ruby
Ruby-Methods
Ruby Set-class
Ruby | Set size() function
Last Updated: 07 January 2020
The size() is an inbuilt method in Ruby returns the size of the Set. It returns the number of elements in the set. Syntax: s1_name.size()Parameters: The function does not...
read more
Ruby
Ruby-Methods
Ruby Set-class
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !