J
Josselin
if i have
my_list = "2-131-25-5558-247-68"
and I want to get rid of the last element...
I wrote :
my_list.split('-') - my_list.split('-').last.to_a => "22-13-25-58-47"
which runs well.. but isn't too complex.... ?
tfyl
joss
my_list = "2-131-25-5558-247-68"
and I want to get rid of the last element...
I wrote :
my_list.split('-') - my_list.split('-').last.to_a => "22-13-25-58-47"
which runs well.. but isn't too complex.... ?
tfyl
joss