Skip to content

Commit 88b2484

Browse files
committed
add log expr to function expressions
1 parent b1c17f7 commit 88b2484

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Firestore/Swift/Source/ExpressionImplementation.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,14 @@ public extension Expression {
379379
return FunctionExpression("ln", [self])
380380
}
381381

382+
func log(_ base: Sendable) -> FunctionExpression {
383+
return FunctionExpression("log", [self, Helper.sendableToExpr(base)])
384+
}
385+
386+
func log(_ base: Expression) -> FunctionExpression {
387+
return FunctionExpression("log", [self, base])
388+
}
389+
382390
func pow(_ exponent: Sendable) -> FunctionExpression {
383391
return FunctionExpression("pow", [self, Helper.sendableToExpr(exponent)])
384392
}

0 commit comments

Comments
 (0)