Question from the Ruby test

How to add a key-value pair to a hash in Ruby

Medium

What is the difference between my_hash.compact and my_hash.compact! ?

Author: HivebriteStatus: PublishedQuestion passed 238 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!