In Str§
See primary documentation in context for routine flip
multi flip(Str --> Str)multi method flip(Str: --> Str)
Returns the string reversed character by character.
Examples:
"Raku".flip; # OUTPUT: «ukaR»"ABBA".flip; # OUTPUT: «ABBA»
In Allomorph§
See primary documentation in context for method flip
method flip(Allomorph:)
Calls Str.flip
on the invocant's Str
value.
In Cool§
See primary documentation in context for routine flip
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»