Text processing/2: Difference between revisions

m
→‎{{header|Sidef}}: modified the code to work with Sidef 2.30
(Added Nim solution)
m (→‎{{header|Sidef}}: modified the code to work with Sidef 2.30)
Line 2,615:
{{trans|Perl 6}}
<lang ruby>var good_records = 0;
var dates = Hash.new();
 
ARGF.each { |line|
Line 2,627:
say "#{good_records} good records out of #{$.} total";
say 'Repeated timestamps:';
say dates.pairsto_a.grep{ .secondvalue > 1 }.map { .firstkey }.sort.join("\n");</lang>
{{out}}
<pre>
2,747

edits