@@ -68,37 +68,6 @@ public protocol Expr: Sendable {
68
68
/// - Returns: A new `FunctionExpr` representing the addition operation.
69
69
func add( _ value: Sendable ) -> FunctionExpr
70
70
71
- /// Creates an expression that adds this expression to one or more other expressions.
72
- /// Assumes `self` and all parameters evaluate to compatible types for addition (e.g., numbers, or
73
- /// string/array concatenation if supported by the specific "add" implementation).
74
- ///
75
- /// ```swift
76
- /// // Add the value of the 'quantity' field and the 'reserve' field.
77
- /// Field("quantity").add(Field("reserve"))
78
- ///
79
- /// // Add multiple numeric fields
80
- /// Field("subtotal").add(Field("tax"), Field("shipping"))
81
- /// ```
82
- ///
83
- /// - Parameter values: Expr` values to add.
84
- /// - Returns: A new `FunctionExpr` representing the addition operation.
85
- func add( _ values: [ Expr ] ) -> FunctionExpr
86
-
87
- /// Creates an expression that adds this expression to one or more literal values.
88
- /// Assumes `self` and all parameters evaluate to compatible types for addition.
89
- ///
90
- /// ```swift
91
- /// // Add 5 to the 'count' field
92
- /// Field("count").add(5)
93
- ///
94
- /// // Add multiple literal numbers
95
- /// Field("score").add(10, 20, -5)
96
- /// ```
97
- ///
98
- /// - Parameter values: Expr` values to add.
99
- /// - Returns: A new `FunctionExpr` representing the addition operation.
100
- func add( _ values: [ Sendable ] ) -> FunctionExpr
101
-
102
71
/// Creates an expression that subtracts another expression from this expression.
103
72
/// Assumes `self` and `other` evaluate to numeric types.
104
73
///
@@ -153,36 +122,6 @@ public protocol Expr: Sendable {
153
122
/// - Returns: A new `FunctionExpr` representing the multiplication operation.
154
123
func multiply( _ value: Sendable ) -> FunctionExpr
155
124
156
- /// Creates an expression that multiplies this expression by one or more other expressions.
157
- /// Assumes `self` and all parameters evaluate to numeric types.
158
- ///
159
- /// ```swift
160
- /// // Multiply the 'quantity' field by the 'price' field
161
- /// Field("quantity").multiply(Field("price"))
162
- ///
163
- /// // Multiply 'rate' by 'time' and 'conversionFactor' fields
164
- /// Field("rate").multiply(Field("time"), Field("conversionFactor"))
165
- /// ```
166
- ///
167
- /// - Parameter values: `Expr` values to multiply by.
168
- /// - Returns: A new `FunctionExpr` representing the multiplication operation.
169
- func multiply( _ values: [ Expr ] ) -> FunctionExpr
170
-
171
- /// Creates an expression that multiplies this expression by one or more literal values.
172
- /// Assumes `self` evaluates to a numeric type.
173
- ///
174
- /// ```swift
175
- /// // Multiply the 'score' by 1.1
176
- /// Field("score").multiply(1.1)
177
- ///
178
- /// // Multiply 'base' by 2 and then by 3.0
179
- /// Field("base").multiply(2, 3.0)
180
- /// ```
181
- ///
182
- /// - Parameter values: `Sendable` literal values to multiply by.
183
- /// - Returns: A new `FunctionExpr` representing the multiplication operation.
184
- func multiply( _ values: [ Sendable ] ) -> FunctionExpr
185
-
186
125
/// Creates an expression that divides this expression by another expression.
187
126
/// Assumes `self` and `other` evaluate to numeric types.
188
127
///
0 commit comments