S
Size: a a a
AT
S
DH
S
G
k
arryaProfiles: [Profile] = [] вот тут храняться все айдишники i in profiles {
i.userID
} arrayMatches: [Match] = [] вот тут нужные айдишники i in match?.matches ?? [] {
i.user.userID
}S
AS
let output = arryaProfiles.filter(arrayMatches.contains)AS
let output = arryaProfiles.filter(arrayMatches.contains($0))k

AS
AS
k
k
sortMa = arrayMatches.map({ $0.user.userID })
let sortPr = arryaProfiles.filter{ sortMa.contains(where: $0.userID) }OP