1
1

配列のうしろに配列を追加する方法です。

array1 = []
array1.push(1)
array1.push(2)

for i in array1 do
  puts i
end

実行した結果
tst.jpg

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1