Post History
Ruby, 23 bytes ->n,*x{eval'x<<x*1;'*n} Try this online! There is also 22 bytes version, but it uses special $* global variables (so it can be run only once in single process): ->n...
Answer
#3: Post edited
- # [Ruby](https://www.ruby-lang.org/), 23 bytes
- ```ruby
->n{x=[];eval'x<<x*1;'*n}- ```
- **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboW23Xt8nS0KqpTyxJz1CtsbCq0DK3VtfJqIbLLChTSok1iIZwFCyA0AA)**
- There is also **22 bytes** version, but it uses special `$*` global variables (so it can be run only once in single process):
- ```ruby
- ->n{eval'$*<<$**1;'*n}
- ```
- **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboW23Tt8qpTyxJz1FW0bGxUtLQMrdW18mohkssKFNKiTWIhnAULIDQA)**
- # [Ruby](https://www.ruby-lang.org/), 23 bytes
- ```ruby
- ->n,*x{eval'x<<x*1;'*n}
- ```
- **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboW23Xt8nS0KqpTyxJz1CtsbCq0DK3VtfJqIbLLChTSok1iIZwFCyA0AA)**
- There is also **22 bytes** version, but it uses special `$*` global variables (so it can be run only once in single process):
- ```ruby
- ->n{eval'$*<<$**1;'*n}
- ```
- **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboW23Tt8qpTyxJz1FW0bGxUtLQMrdW18mohkssKFNKiTWIhnAULIDQA)**
#2: Post edited
# [Ruby](https://www.ruby-lang.org/), 25 bytes- ```ruby
- ->n{x=[];eval'x<<x*1;'*n}
- ```
**[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboWO3Xt8qorbKNjrVPLEnPUK2xsKrQMrdW18moh8ssKFNKiTWIhnAULIDQA)**- There is also **22 bytes** version, but it uses special `$*` global variables (so it can be run only once in single process):
- ```ruby
- ->n{eval'$*<<$**1;'*n}
- ```
- **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboW23Tt8qpTyxJz1FW0bGxUtLQMrdW18mohkssKFNKiTWIhnAULIDQA)**
- # [Ruby](https://www.ruby-lang.org/), 23 bytes
- ```ruby
- ->n{x=[];eval'x<<x*1;'*n}
- ```
- **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboW23Xt8nS0KqpTyxJz1CtsbCq0DK3VtfJqIbLLChTSok1iIZwFCyA0AA)**
- There is also **22 bytes** version, but it uses special `$*` global variables (so it can be run only once in single process):
- ```ruby
- ->n{eval'$*<<$**1;'*n}
- ```
- **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboW23Tt8qpTyxJz1FW0bGxUtLQMrdW18mohkssKFNKiTWIhnAULIDQA)**
#1: Initial revision
# [Ruby](https://www.ruby-lang.org/), 25 bytes ```ruby ->n{x=[];eval'x<<x*1;'*n} ``` **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboWO3Xt8qorbKNjrVPLEnPUK2xsKrQMrdW18moh8ssKFNKiTWIhnAULIDQA)** There is also **22 bytes** version, but it uses special `$*` global variables (so it can be run only once in single process): ```ruby ->n{eval'$*<<$**1;'*n} ``` **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsHiNNuYpaUlaboW23Tt8qpTyxJz1FW0bGxUtLQMrdW18mohkssKFNKiTWIhnAULIDQA)**