Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
24
Task/String-prepend/Raku/string-prepend.raku
Normal file
24
Task/String-prepend/Raku/string-prepend.raku
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# explicit concatentation
|
||||
$_ = 'byte';
|
||||
$_ = 'kilo' ~ $_;
|
||||
.say;
|
||||
|
||||
# interpolation as concatenation
|
||||
$_ = 'buck';
|
||||
$_ = "mega$_";
|
||||
.say;
|
||||
|
||||
# lvalue substr
|
||||
$_ = 'bit';
|
||||
substr-rw($_,0,0) = 'nano';
|
||||
.say;
|
||||
|
||||
# regex substitution
|
||||
$_ = 'fortnight';
|
||||
s[^] = 'micro';
|
||||
.say;
|
||||
|
||||
# reversed append assignment
|
||||
$_ = 'cooper';
|
||||
$_ [R~]= 'mini';
|
||||
.say;
|
||||
Loading…
Add table
Add a link
Reference in a new issue