我有以下UITextField列表:
我正在尝试查找电话号码的重复项并将其打印出来。 编辑 例如(元组可能为空):
let list = [(name1TextField, phone1TextField), (name2TextField, phone2TextField), (name3TextField, phone3TextField), (name4TextField, phone4TextField), (name5TextField, phone5TextField)]
我正在尝试查找电话号码的重复项并将其打印出来。 编辑 例如(元组可能为空):
list = [("john", "555-444-333"), ("james", "555-444-333"), ("",""), ("bob", "333-222-111"), ("nancy", "222-111-444"), ]
output 555-444-333
我该怎么做呢?