1 2
int count = 0; Dictionary<string,int> headers = line.Split(',').ToDictionary(y => y, y => count++);
1 2 3 4
#!/usr/bin/env ruby files = ARGV.collect { |fname| File.new(fname, 'w') } ...
Ruby Randomly split input lines.
by Scott Robinson,
November 15, 2007 08:56,
No refactoring, tagged with short, functional, oneliner, one-liner
My first Ruby script. I'm c...
Anyone up for the challenge...