过滤数组删除键值城市的重复项我需要在第一个表视图中仅显示城市名称而没有重复项以及何时选择我需要在下一个表视图中显示特定部门
以印度为例,我需要在下一个视图中显示三个部门请建议我
Array values :(
{
city = uk;
department = "Sales support";
},
{
city = us;
department = "Sales support";
},
{
city = italy;
department = "Sales support";
},
{
city = india;
department = "x";
},
{
city = india;
department = "y";
},
{
city = india;
department = "z";
},
)