Ruby Destructure Array

[Solved] Ruby Destructure Array | Ruby - Code Explorer | yomemimo.com
Question : ruby destructure array

Answered by : robert-l-west

x, y = [1, 2]
p x # => 1
p y # => 2

Source : | Last Update : Wed, 12 Oct 22

Answers related to ruby destructure array

Code Explorer Popular Question For Ruby