4 Replies
your syntax is invalid in Person2, you are assigning rather than declaring the type, so it wants an argument like
String(repeating: "Foo", count: 2)
sorry, what do
repeating
and count
mean? I don't understandthey are
init
arguments for the String
struct
typeI see, thank you!