Page MenuHomeFeedback Tracker

[Request] Make toLower-type commands accept arrays of strings
Closed, ResolvedPublic

Description

Currently if you want to convert an array of strings to lower (or upper) you have to write a little thing to process through every element of the array and put it in a new array. This isn't an extremely complex thing to write, but it could be reasonably streamlined by making toLower or toUpper do it automatically.

Proposed syntax:

_lowerArray = toLower ["AN","aRrAy","OF","StRiNgS"];

resulting in:

["an","array","of","strings"]

For bonus points it could accept any array and convert any strings in it while leaving the rest untouched, but I accept that may be out of scope.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Feature Request

Event Timeline

NikkoJT created this task.Jun 25 2021, 3:29 AM

what’s wrong with

["AN","aRrAy","OF","StRiNgS"] apply {toLower _x}

Nothing at all! I just didn't know about it.

Obviously this ticket can now be closed since the change is unnecessary.

R3vo closed this task as Resolved.Jun 25 2021, 4:40 PM
R3vo claimed this task.