Rosetta Code/Count examples: Difference between revisions

m
(→‎{{header|Perl 6}}: Replace broken, minimalist version with modern bells-and-whistles version, add output)
m (→‎{{header|Perl 6}}: Style tweaks)
Line 1,713:
# Sort tasks by count then add row
for %tasks.sort: -*.value<count> -> $task {
$out.say( '|-' );:
"|-\n",
$out.say( '| ', $task.value<count> );
$out.say: "| { $task.key ~~value<count> /}\d/n",
?? "|data-sort-value=\"{( $task.key.&naturally} ~~ /\"| {$task.key}"d/
!! ?? "|data-sort-value=\"{ $task.key.&naturally }\"| { $task.key }\n"
!! "| { $task.key }\n"
; ),
$out.say( '| ', $task.value<cat> );
$out.say( ' "| ',{ $task.value<countcat> );}"
}
 
10,333

edits