How to use an existing list for creating new object in let aPerson = Person(value: ["Jane", 30, [aDog, anotherDog]])


#1

how to use an existing list for creating new object in

let aPerson = Person(value: [“Jane”, 30, [aDog, anotherDog]])

i.e instead of [aDog, anotherDog] i have list of objects already appended , but when i assign it ,it throws error