Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/String-case/Fantom/string-case.fantom
Normal file
10
Task/String-case/Fantom/string-case.fantom
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fansh> a := "alphaBETA"
|
||||
alphaBETA
|
||||
fansh> a.upper // convert whole string to upper case
|
||||
ALPHABETA
|
||||
fansh> a.lower // convert whole string to lower case
|
||||
alphabeta
|
||||
fansh> a.capitalize // make sure first letter is capital
|
||||
AlphaBETA
|
||||
fansh> "BETAalpha".decapitalize // make sure first letter is not capital
|
||||
bETAalpha
|
||||
Loading…
Add table
Add a link
Reference in a new issue