[ create a new paste ] login | about

Link: http://codepad.org/ivGHJWoA    [ raw code | output | fork ]

Ruby, pasted on Apr 16:
1
2
3
4
5
6
7
a = [1, 2, 3]

b = a.each { |c|
  c + 10
}

puts b.inspect


Output:
1
[1, 2, 3]


Create a new paste based on this one


Comments: