# your code goes here
a = [0,1,2,3,4,5,6,7,8,9]
b = a.slice( 2,2 )
puts "slice:"
puts " a = " + a.inspect
puts " b = " + b.inspect
b = a.slice!(2,2)
puts "slice!:"
puts " a = " + a.inspect
puts " b = " + b.inspect
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCmEgPSBbMCwxLDIsMyw0LDUsNiw3LDgsOV0KCmIgPSBhLnNsaWNlKCAyLDIgKQoKcHV0cyAic2xpY2U6IgpwdXRzICIgIGEgPSAiICsgYS5pbnNwZWN0CnB1dHMgIiAgYiA9ICIgKyBiLmluc3BlY3QKCmIgPSBhLnNsaWNlISgyLDIpCnB1dHMgInNsaWNlIToiCnB1dHMgIiAgYSA9ICIgKyBhLmluc3BlY3QKcHV0cyAiICBiID0gIiArIGIuaW5zcGVjdAoK
slice:
a = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
b = [2, 3]
slice!:
a = [0, 1, 4, 5, 6, 7, 8, 9]
b = [2, 3]