标签: swift
问题: 需要计算数组中重复值的数量并将其放入元组中 像这样:
var array = ["a","a","b","a","c","b"] answer = ["a":3,"b":2,"c":1]