こうすると、RangeクラスをArrayに入れてしまう。
[1..10] # => [1..10]
こうすると連番のArrayを用意できる。
[*1..10]
# => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[*'a'..'f']
# => ["a", "b", "c", "d", "e", "f"]
Go to list of users who liked
More than 5 years have passed since last update.
こうすると、RangeクラスをArrayに入れてしまう。
[1..10] # => [1..10]
こうすると連番のArrayを用意できる。
[*1..10]
# => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[*'a'..'f']
# => ["a", "b", "c", "d", "e", "f"]
Register as a new user and use Qiita more conveniently
Go to list of users who liked