RosettaCodeData/Task/Naming-conventions/Ruby/naming-conventions-1.rb

6 lines
189 B
Ruby
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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]