Space Index by nyamadori

readlines.each {|l|
  is, s = l.split(' ')
  next puts is||'' unless s
  x = 0
  is.split(',').each {|i|
    s.insert(i.to_i + x, ' ')
    x += 1
  }
  puts s
}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page