I feel like this is a "generics" thing, but I can't figure out how others do it? I'm pretty sure in Typescript I just do String|String[] but not sure how it works in Swift. Here's my attempt:
func HiWorld(passedVar: String|[String]){
print(passedVar)
}
or
func HiWorld<T, String|[String]>(passedVar: T){
print(passedVar)
}