Hash#<=() is a Hash class method which compares two Hash values.
Parameter: Hash values
Return: true – if a <= b otherwise return false
Example #1 :
Hash a <= b : true Hash b <= c : false Hash a <= c : true
Example #2 :
Hash a <= b : false Hash b <= c : true Hash a <= c : false
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.