String case: Difference between revisions
Content added Content deleted
Line 1,989: | Line 1,989: | ||
"alphabeta" |
"alphabeta" |
||
</syntaxhighlight> |
</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}}== |
=={{header|Kotlin}}== |