arr = [ 12, 8, 65, 22, 40, 41] puts arr[0..2 & 4..5] # Something like this ^^?
Apprenez de manière plus efficace, gratuitement :
Introduction à Python
7.1M apprenants
Introduction à Java
4.7M apprenants
Introduction à C
1.5M apprenants
Introduction à HTML
7.5M apprenants