Array – How do you write all strings in an array?

I have an array of strings, but all the jingle is written in uppercase letters. Is there a way for me to set all the strings in the array to lowercase (and use uppercase and lowercase) )

array = ["BOY","GIRL","MAN"] 
// func to convert it to array = ["Boy" ,"Girl","Man"]

Is there a way to do this without rewriting the contents of the array with lowercase letters. I used uppercase letters to form a long string array.

You can use the map function like this:

< pre>let array = [“BOY”,”GIRL”,”MAN”]

let capitalizedArray = array.map {$0.capitalizedString}

< p>I have an array of strings, but all jingle is written in uppercase letters. Is there a way for me to set all strings in the array to lowercase (and use uppercase and lowercase)

< p>

array = ["BOY","GIRL","MAN"] 
// func to convert it to array = ["Boy","Girl","Man"]

Is there a way to do this without rewriting the contents of the array with lowercase letters. I used uppercase letters to form a long array of strings.

< /p>

You can use the map function like this:

let array = ["BOY","GIRL","MAN"]

let capitalizedArray = array.map {$0.capitalizedString}

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4172 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.