Rep-string: Difference between revisions

Content deleted Content added
Thundergnat (talk | contribs)
Rename Perl 6 -> Raku, alphabetize, minor clean-up
Thundergnat (talk | contribs)
m Fix Perl 6 -> Raku in comments
Line 761: Line 761:


=={{header|D}}==
=={{header|D}}==
Two different algorithms. The second is from the Perl 6 entry.
Two different algorithms. The second is from the Raku entry.
<lang d>import std.stdio, std.string, std.conv, std.range, std.algorithm,
<lang d>import std.stdio, std.string, std.conv, std.range, std.algorithm,
std.ascii, std.typecons;
std.ascii, std.typecons;
Line 2,561: Line 2,561:


===Python: Regexp===
===Python: Regexp===
This version, inspired by the Perl 6 entry uses the regexp substitute where what the match is substituted with is returned by a function.
This version, inspired by the Raku entry uses the regexp substitute where what the match is substituted with is returned by a function.
<lang python>import re
<lang python>import re