Hello mjza,
Could you tell me please, where do I set TKTokenOperationConstraint?
Apple documentation is so poor.
Thank you.
Post
Replies
Boosts
Views
Activity
You can try something like this:
let rangeA = 1...10
let rangeB = 14...22
let numsBetweenRanges = Set(rangeA).symmetricDifference(Set(rangeB))
let missingNums = Array(numsBetweenRanges).sorted().filter { num in
!range1.contains(num) || !range2.contains(num)
}
print(missingNums) // Output: [11, 12, 13]