arr = [ 12, 8, 65, 22, 40, 41] puts arr[0..2 & 4..5] # Something like this ^^?
Impara in modo più efficiente, gratuitamente:
Introduzione a Python
7,1M studenti
Introduzione a Java
4,7M studenti
Introduzione a C
1,5M studenti
Introduzione a HTML
7,5M studenti