我想知道是否有人知道任何声明性语言来表示绝对日期-时间多间隔。我指的是时间间隔的并集/交集/补集。我想表示的间隔如下: (from the second day of the month to the 10th) intersection (months 1,2,3,10)union
(monday of january to the 3rd of july) intersection (not in(mondays, fridays))
有没有人知道如何使用用户定义的类实现集合操作,并将其属性作为操作条件。例如: var figure: Int!myClass()let set2: Set = [classObj2, classObj3]set2.substract(set1) {s2, s1 in s2.figure == s1.figure}非常感谢您的建