String case: Difference between revisions
→{{header|K}}
Line 1,989:
"alphabeta"
</syntaxhighlight>
Or (ngn/k):
<syntaxhighlight lang=K>upper: {`c$x+-32*(x>"`")*x<"{"}
lower: {`c$x+32*(x>"@")*x<"["}
upper "This is a test."
"THIS IS A TEST."
lower "This is a test."
"this is a test."
lower s
"alphabeta"
upper s
"ALPHABETA"</syntaxhighlight>
=={{header|Kotlin}}==
|