removing duplicates : squeeze « String « Ruby






removing duplicates


"hello".squeeze('a-z')  # => "helo": remove runs of letters. Also squeeze!

 

Related examples in the same category