Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/String-case/Raku/string-case.raku
Normal file
8
Task/String-case/Raku/string-case.raku
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
my $word = "alpha BETA" ;
|
||||
say uc $word; # all uppercase (subroutine call)
|
||||
say $word.uc; # all uppercase (method call)
|
||||
# from now on we use only method calls as examples
|
||||
say $word.lc; # all lowercase
|
||||
say $word.tc; # first letter titlecase
|
||||
say $word.tclc; # first letter titlecase, rest lowercase
|
||||
say $word.wordcase; # capitalize each word
|
||||
Loading…
Add table
Add a link
Reference in a new issue