2222// THE SOFTWARE.
2323//
2424
25- private enum Functions : String {
25+ private enum Function : String {
2626 case count
2727 case max
2828 case min
@@ -61,7 +61,7 @@ extension ExpressionType where UnderlyingType : Value {
6161 /// - Returns: A copy of the expression wrapped with the `count` aggregate
6262 /// function.
6363 public var count : Expression < Int > {
64- return Functions . count. wrap ( self )
64+ return Function . count. wrap ( self )
6565 }
6666
6767}
@@ -92,7 +92,7 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
9292 /// - Returns: A copy of the expression wrapped with the `count` aggregate
9393 /// function.
9494 public var count : Expression < Int > {
95- return Functions . count. wrap ( self )
95+ return Function . count. wrap ( self )
9696 }
9797
9898}
@@ -109,7 +109,7 @@ extension ExpressionType where UnderlyingType : Value, UnderlyingType.Datatype :
109109 /// - Returns: A copy of the expression wrapped with the `max` aggregate
110110 /// function.
111111 public var max : Expression < UnderlyingType ? > {
112- return Functions . max. wrap ( self )
112+ return Function . max. wrap ( self )
113113 }
114114
115115 /// Builds a copy of the expression wrapped with the `min` aggregate
@@ -122,7 +122,7 @@ extension ExpressionType where UnderlyingType : Value, UnderlyingType.Datatype :
122122 /// - Returns: A copy of the expression wrapped with the `min` aggregate
123123 /// function.
124124 public var min : Expression < UnderlyingType ? > {
125- return Functions . min. wrap ( self )
125+ return Function . min. wrap ( self )
126126 }
127127
128128}
@@ -139,7 +139,7 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
139139 /// - Returns: A copy of the expression wrapped with the `max` aggregate
140140 /// function.
141141 public var max : Expression < UnderlyingType > {
142- return Functions . max. wrap ( self )
142+ return Function . max. wrap ( self )
143143 }
144144
145145 /// Builds a copy of the expression wrapped with the `min` aggregate
@@ -152,7 +152,7 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
152152 /// - Returns: A copy of the expression wrapped with the `min` aggregate
153153 /// function.
154154 public var min : Expression < UnderlyingType > {
155- return Functions . min. wrap ( self )
155+ return Function . min. wrap ( self )
156156 }
157157
158158}
@@ -169,7 +169,7 @@ extension ExpressionType where UnderlyingType : Value, UnderlyingType.Datatype :
169169 /// - Returns: A copy of the expression wrapped with the `min` aggregate
170170 /// function.
171171 public var average : Expression < Double ? > {
172- return Functions . avg. wrap ( self )
172+ return Function . avg. wrap ( self )
173173 }
174174
175175 /// Builds a copy of the expression wrapped with the `sum` aggregate
@@ -182,7 +182,7 @@ extension ExpressionType where UnderlyingType : Value, UnderlyingType.Datatype :
182182 /// - Returns: A copy of the expression wrapped with the `min` aggregate
183183 /// function.
184184 public var sum : Expression < UnderlyingType ? > {
185- return Functions . sum. wrap ( self )
185+ return Function . sum. wrap ( self )
186186 }
187187
188188 /// Builds a copy of the expression wrapped with the `total` aggregate
@@ -195,7 +195,7 @@ extension ExpressionType where UnderlyingType : Value, UnderlyingType.Datatype :
195195 /// - Returns: A copy of the expression wrapped with the `min` aggregate
196196 /// function.
197197 public var total : Expression < Double > {
198- return Functions . total. wrap ( self )
198+ return Function . total. wrap ( self )
199199 }
200200
201201}
@@ -212,7 +212,7 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
212212 /// - Returns: A copy of the expression wrapped with the `min` aggregate
213213 /// function.
214214 public var average : Expression < Double ? > {
215- return Functions . avg. wrap ( self )
215+ return Function . avg. wrap ( self )
216216 }
217217
218218 /// Builds a copy of the expression wrapped with the `sum` aggregate
@@ -225,7 +225,7 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
225225 /// - Returns: A copy of the expression wrapped with the `min` aggregate
226226 /// function.
227227 public var sum : Expression < UnderlyingType > {
228- return Functions . sum. wrap ( self )
228+ return Function . sum. wrap ( self )
229229 }
230230
231231 /// Builds a copy of the expression wrapped with the `total` aggregate
@@ -238,15 +238,15 @@ extension ExpressionType where UnderlyingType : _OptionalType, UnderlyingType.Wr
238238 /// - Returns: A copy of the expression wrapped with the `min` aggregate
239239 /// function.
240240 public var total : Expression < Double > {
241- return Functions . total. wrap ( self )
241+ return Function . total. wrap ( self )
242242 }
243243
244244}
245245
246246extension ExpressionType where UnderlyingType == Int {
247247
248248 static func count( _ star: Star ) -> Expression < UnderlyingType > {
249- return Functions . count. wrap ( star ( nil , nil ) )
249+ return Function . count. wrap ( star ( nil , nil ) )
250250 }
251251
252252}
0 commit comments