routine flip
1 | class Str |
1.1 | (Str) routine flip |
2 | class Cool |
2.1 | (Cool) routine flip |
Documentation for routine flip
assembled from the following types:
class Str
From Str
(Str) routine flip
multi sub flip(Str --> Str)multi method flip(Str: --> Str)
Returns the string reversed character by character.
Examples:
"Perl".flip; # RESULT: «lreP»"ABBA".flip; # RESULT: «ABBA»
class Cool
From Cool
(Cool) routine flip
Defined as:
sub flip(Cool --> Str)method flip()
Coerces the invocant (or in sub form, its argument) to Str, and returns a reversed version.
say 421.flip; # OUTPUT: «124»