September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
7
Task/String-comparison/Jq/string-comparison-2.jq
Normal file
7
Task/String-comparison/Jq/string-comparison-2.jq
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Only characters A to Z are affected
|
||||
def downcase:
|
||||
explode | map( if 65 <= . and . <= 90 then . + 32 else . end) | implode;
|
||||
|
||||
# Only characters a to z are affected
|
||||
def upcase:
|
||||
explode | map( if 97 <= . and . <= 122 then . - 32 else . end) | implode;
|
||||
Loading…
Add table
Add a link
Reference in a new issue