fork download
  1. n = 5
  2. r = (0...n).to_a
  3. p r
Success #stdin #stdout 0.01s 8036KB
stdin
Standard input is empty
stdout
[0, 1, 2, 3, 4]