routine x
1 | language documentation Operators |
1.1 | (Operators) infix x |
2 | class IO::Special |
2.1 | (IO::Special) method x |
3 | class IO::Path |
3.1 | (IO::Path) method x |
Documentation for routine x
assembled from the following types:
language documentation Operators
From Operators
(Operators) infix x
sub infix:<x>(, --> Str)
Repeats the string $a
$b
times, if necessary coercing $a
to Str
and $b
Int
. Returns an empty string if $b <= 0
. An exception X::Numeric::CannotConvert
will be thrown if $b
is -Inf
or NaN
.
say 'ab' x 3; # OUTPUT: «ababab»say 42 x 3; # OUTPUT: «424242»my = 'a'.IO;my = 3.5;say x ; # OUTPUT: «aaa»
class IO::Special
From IO::Special
(IO::Special) method x
method x(IO::Special: --> False)
The 'execute access' file test operator, always returns False
.
class IO::Path
From IO::Path
(IO::Path) method x
Defined as:
method x(--> Bool)
Returns True
if the invocant is a path that exists and is executable. The method will fail
with X::IO::DoesNotExist
if the path points to a non-existent filesystem entity.