Jump to content

Rosetta Code/Rank languages by number of users: Difference between revisions

m
→‎{{header|Perl 6}}: add some timing information
(→‎{{header|Perl 6}}: Add a Perl 6 example)
m (→‎{{header|Perl 6}}: add some timing information)
Line 36:
 
say "========= Generated: { DateTime.new(time) } =========";
my $start-time = now;
 
my $lang = 1;
my $rank = 0;
Line 55:
 
.map( { last if @_[0] < $minimum; display(|@_) } );
 
say "========= elapsed: {(now - $start-time).round(.01)} seconds =========";
 
sub display ($count, $which) {
Line 86 ⟶ 88:
 
{{out}}
<pre>========= Generated: 2017-12-18T13:3850:04Z32Z =========
# 1 Rank: 1 with 373 users: C
# 2 Rank: 2 with 261 users: C++
Line 131 ⟶ 133:
# 43 Rank: 43 with 27 users: Clojure
# 44 Rank: 43 T with 27 users: Mathematica
# 45 Rank: 45 with 25 users: AutoHotkey</pre>
========= elapsed: 1.81 seconds =========</pre>
 
=={{header|Stata}}==
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.