Project to study Swift 5.4
Table of Contents
Create a function that replaces all the vowels in a string with a specified character.
Examples:
replaceVowels("the aardvark", "#") ➞ "th# ##rdv#rk"
replaceVowels("minnie mouse", "?") ➞ "m?nn?? m??s?"
replaceVowels("shakespeare", "*") ➞ "sh*k*sp**r*"
Notes:
All characters will be in lower case.
Excercise from: https://edabit.com/challenges/swift
Open the file VowelReplacer.xcodeproj
- Xcode 12.4
- Use iPhone 12 mini as simulator
Daniel Washington Ignacio - danielvertigo@hotmail.com
Click to access my LinkedIn