File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -553,6 +553,12 @@ public func and(_ terms: Expression<Bool>...) -> Expression<Bool> {
553553public func and( _ terms: [ Expression < Bool > ] ) -> Expression < Bool > {
554554 return " AND " . infix ( terms)
555555}
556+ public func and( _ terms: Expression < Bool ? > ... ) -> Expression < Bool ? > {
557+ return " AND " . infix ( terms)
558+ }
559+ public func and( _ terms: [ Expression < Bool ? > ] ) -> Expression < Bool ? > {
560+ return " AND " . infix ( terms)
561+ }
556562public func && ( lhs: Expression < Bool > , rhs: Expression < Bool > ) -> Expression < Bool > {
557563 return Operator . and. infix ( lhs, rhs)
558564}
@@ -584,6 +590,12 @@ public func or(_ terms: Expression<Bool>...) -> Expression<Bool> {
584590public func or( _ terms: [ Expression < Bool > ] ) -> Expression < Bool > {
585591 return " OR " . infix ( terms)
586592}
593+ public func or( _ terms: Expression < Bool ? > ... ) -> Expression < Bool ? > {
594+ return " OR " . infix ( terms)
595+ }
596+ public func or( _ terms: [ Expression < Bool ? > ] ) -> Expression < Bool ? > {
597+ return " OR " . infix ( terms)
598+ }
587599public func || ( lhs: Expression < Bool > , rhs: Expression < Bool > ) -> Expression < Bool > {
588600 return Operator . or. infix ( lhs, rhs)
589601}
You can’t perform that action at this time.
0 commit comments