Question: Create a new String instance called empty and give it an empty string: let empty = . It is useful to be able
Create a new String instance called empty and give it an empty string: let empty Itis useful to be able to tell if a string has any characters in it Use the startIndex andendIndex properties on empty to determine whether this string is truly empty. Next,consult the documentation via the Help menu item in Xcode for a cleaner way to accomplishthis check.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
