let res = crewInfo.filter(@(v) v.country == curCountry) if (res.len() == 1) return res.map( @(countryInfo) countryInfo.__merge({ crews = countryInfo.crews.map(@(crew) crew.__merge({idCountry = 0})) }) )