Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
15
Task/String-case/Elena/string-case.elena
Normal file
15
Task/String-case/Elena/string-case.elena
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#import system.
|
||||
#import system'culture.
|
||||
|
||||
#symbol program =
|
||||
[
|
||||
#var s1 := "alphaBETA".
|
||||
|
||||
// Alternative 1
|
||||
console writeLine:(s1::caseLiteralOp lowerCase).
|
||||
console writeLine:(s1::caseLiteralOp upperCase).
|
||||
|
||||
// Alternative 2
|
||||
console writeLine:(s1 toLower &locale:currentLocale).
|
||||
console writeLine:(s1 toUpper &locale:currentLocale).
|
||||
].
|
||||
Loading…
Add table
Add a link
Reference in a new issue