Task: Split a String into an Array in Swift
Task: Split a String into an Array in Swift: a task in Terminal-Lego-15k (Harbor dataset). Write a Swift program that splits a full name string by whitespace and assigns the parts to appropriate variables. The program must handle cases where a user may or may not have a last name.
Part of PrimeIntellect/Terminal-Lego-15k.