While researching the String Structure Reference from Apple (String Structure Reference)
There are initializer methods that accepts Int parameters such as:
init(stringInterpolationSegment expr: Int)
I attempted by writing the code below to learn how to use it plus learn the difference between pass by reference vs. pass by value but can't get it to work using the following:
struct Soho {
var myCountry = "America"
init(stringInterpolationSegment expr: Int){
}
}
How should swift code be structured in order to use this string initializer?