fork download
  1. lista = ['01.um', '02.dois', '03.tres']
  2.  
  3. for(i = 0; i < lista.size(); i++)
  4. lista[i] = lista[i].substring(0,2)
  5.  
  6. println lista
Success #stdin #stdout 1.3s 333312KB
stdin
Standard input is empty
stdout
[01, 02, 03]