Reverse a string
Perl 6 handles graphemes correctly by default.
say "hello world".flip;
say "as⃝df̅".flip
Output:
dlrow olleh
f̅ds⃝a
Perl 6 handles graphemes correctly by default.
say "hello world".flip;
say "as⃝df̅".flip
dlrow olleh
f̅ds⃝a