RosettaCodeData/Task/Naming-conventions/Ruby/naming-conventions-1.rb
2023-07-01 13:44:08 -04:00

5 lines
189 B
Ruby

test_variable = [1, 9, 8, 3]
test_variable.sort # => [1, 3, 8, 9]
test_variable # => [1, 9, 8, 3]
test_variable.sort! # => [1, 3, 8, 9]
test_variable # => [1, 3, 8, 9]