Rosetta Code/Count examples: Difference between revisions

Content added Content deleted
(→‎{{header|Raku}}: Marked omitted tasks; count shared entries (C / C++))
Line 2,367: Line 2,367:
# Deal with 3 part headers - {{header|F_Sharp|F#}}, {{header|C_Sharp|C#}}, etc.
# Deal with 3 part headers - {{header|F_Sharp|F#}}, {{header|C_Sharp|C#}}, etc.
$lc.contains("==\{\{header|{@top-n[$_].lc}|") or
$lc.contains("==\{\{header|{@top-n[$_].lc}|") or
# Icon and Unicon are thier own special flowers
# Icon and Unicon are their own special flowers
$lc.contains("}}_and_\{\{header|{@top-n[$_].lc}}}==")) ??
$lc.contains("}}_and_\{\{header|{@top-n[$_].lc}}}==") or
(@places[$_]) !! ' '
# Language1 / Language2 for shared entries (e.g. C / C++)
$lc.contains(rx/'}}''_'*'/''_'*'{{header|'$(@top-n[$_].lc)'}}=='/)) ??
(@places[$_]) !!
# Check if the task was omitted
$lc.contains("\{\{omit_from|{@top-n[$_].lc}") ?? 'O' !!
# The task is neither done or omitted
' '
} ).join;
} ).join;
print clear, 1 + $++, ' ', %cat{$cat}, ' ', .<title>;
print clear, 1 + $++, ' ', %cat{$cat}, ' ', .<title>;