@@ -225,7 +225,7 @@ extension Expression {
225
225
func bitRightShift( _ numberExpression: Expression ) -> FunctionExpression {
226
226
return FunctionExpression ( " bit_right_shift " , [ self , numberExpression] )
227
227
}
228
-
228
+
229
229
/// Calculates the Manhattan (L1) distance between this vector expression and another vector
230
230
/// expression.
231
231
/// Assumes both `self` and `other` evaluate to Vectors.
@@ -271,7 +271,7 @@ extension Expression {
271
271
func manhattanDistance( _ vector: [ Double ] ) -> FunctionExpression {
272
272
return FunctionExpression ( " manhattan_distance " , [ self , Helper . sendableToExpr ( vector) ] )
273
273
}
274
-
274
+
275
275
/// Creates an expression that replaces the first occurrence of a literal substring within this
276
276
/// string expression with another literal substring.
277
277
/// Assumes `self` evaluates to a string.
@@ -284,7 +284,7 @@ extension Expression {
284
284
/// - Parameter find: The literal string substring to search for.
285
285
/// - Parameter replace: The literal string substring to replace the first occurrence with.
286
286
/// - Returns: A new `FunctionExpr` representing the string with the first occurrence replaced.
287
- func replaceFirst( _ find: String , with replace: String ) -> FunctionExpression {
287
+ func replaceFirst( _ find: String , with replace: String ) -> FunctionExpression {
288
288
return FunctionExpression (
289
289
" replace_first " ,
290
290
[ self , Helper . sendableToExpr ( find) , Helper . sendableToExpr ( replace) ]
@@ -304,7 +304,7 @@ extension Expression {
304
304
/// - Parameter replace: An `Expr` (evaluating to a string) for the substring to replace the first
305
305
/// occurrence with.
306
306
/// - Returns: A new `FunctionExpr` representing the string with the first occurrence replaced.
307
- func replaceFirst( _ find: Expression , with replace: Expression ) -> FunctionExpression {
307
+ func replaceFirst( _ find: Expression , with replace: Expression ) -> FunctionExpression {
308
308
return FunctionExpression ( " replace_first " , [ self , find, replace] )
309
309
}
310
310
@@ -320,7 +320,7 @@ extension Expression {
320
320
/// - Parameter find: The literal string substring to search for.
321
321
/// - Parameter replace: The literal string substring to replace all occurrences with.
322
322
/// - Returns: A new `FunctionExpr` representing the string with all occurrences replaced.
323
- func stringReplace( _ find: String , with replace: String ) -> FunctionExpression {
323
+ func stringReplace( _ find: String , with replace: String ) -> FunctionExpression {
324
324
return FunctionExpression (
325
325
" string_replace " ,
326
326
[ self , Helper . sendableToExpr ( find) , Helper . sendableToExpr ( replace) ]
@@ -340,10 +340,9 @@ extension Expression {
340
340
/// - Parameter replace: An `Expression` (evaluating to a string) for the substring to replace all
341
341
/// occurrences with.
342
342
/// - Returns: A new `FunctionExpression` representing the string with all occurrences replaced.
343
- func stringReplace( _ find: Expression , with replace: Expression ) -> FunctionExpression {
343
+ func stringReplace( _ find: Expression , with replace: Expression ) -> FunctionExpression {
344
344
return FunctionExpression ( " string_replace " , [ self , find, replace] )
345
345
}
346
-
347
346
}
348
347
349
348
public extension Expression {
0 commit comments