Post History
Ruby, 27 bytes ->n{x=[];n.times{x<<x*1};x} ->n{ } # lambda taking n x=[]; # set x to empty array n.times{ }; # repeat...
#1: Initial revision
# [Ruby], 27 bytes
```ruby
->n{x=[];n.times{x<<x*1};x}
->n{ } # lambda taking n
x=[]; # set x to empty array
n.times{ }; # repeat n times
x<<x*1 # append x with a copy of itself
x # return x
```
[Try it online!][TIO-krd7rjze]
[Ruby]: https://www.ruby-lang.org/
[TIO-krd7rjze]: https://tio.run/##KypNqvyfZvtf1y6vusI2OtY6T68kMze1uLrCxqZCy7DWuqL2f3pqSbFeSX58JkRKISVfoSavhktBoUAhTU8jT5MrNS/lvykA "Ruby – Try It Online"
