Skip to content
Closed

Add log #15439

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Firestore/Swift/Source/ExpressionImplementation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,14 @@ public extension Expression {
return FunctionExpression("ln", [self])
}

func log(_ base: Sendable) -> FunctionExpression {
return FunctionExpression("log", [self, Helper.sendableToExpr(base)])
}

func log(_ base: Expression) -> FunctionExpression {
return FunctionExpression("log", [self, base])
}

func pow(_ exponent: Sendable) -> FunctionExpression {
return FunctionExpression("pow", [self, Helper.sendableToExpr(exponent)])
}
Expand Down
Loading