fork(1) download
  1. al = ['A', 'B', 'C', 'D']
  2. puts(al.length) # 4
  3. al.push('E')
  4. print(al) # ["A", "B", "C", "D", "E"]
  5. al.delete_at(0)
  6. print("\n")
  7. print(al) # ["B", "C", "D", "E"]
Success #stdin #stdout 0.01s 7412KB
stdin
Standard input is empty
stdout
4
["A", "B", "C", "D", "E"]
["B", "C", "D", "E"]