-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [docs] `.and() clause` * [docs] update per review.
- Loading branch information
1 parent
7671ee3
commit b98ba90
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,6 +313,10 @@ public final class Expression { | |
|
||
/// Creates a negated expression representing the negated result of the given expression. | ||
/// | ||
/// If the operand isn't a boolean type, it gets coerced to a boolean. The number 0 is coerced to false, | ||
/// the number 1 is coerced to `true`, strings are coerced to `false` (but strings prefixed with a number | ||
/// are coerced to `true`, for example "[email protected]"). | ||
/// | ||
/// - Parameter expression: The expression to be negated. | ||
/// - Returns: A negated expression | ||
public static func not(_ expression: ExpressionProtocol) -> ExpressionProtocol { | ||
|
@@ -486,6 +490,10 @@ public final class Expression { | |
/// Creates a logical AND expression that performs logical AND operation with the current | ||
/// expression. | ||
/// | ||
/// If the operand isn't a boolean type, it gets coerced to a boolean. The number 0 is coerced to false, | ||
/// the number 1 is coerced to `true`, strings are coerced to `false` (but strings prefixed with a number | ||
/// are coerced to `true`, for example "[email protected]"). | ||
/// | ||
/// - Parameter expression: The expression to AND with the current expression. | ||
/// - Returns: A logical AND expression. | ||
public func and(_ expression: ExpressionProtocol) -> ExpressionProtocol { | ||
|
@@ -495,6 +503,10 @@ public final class Expression { | |
/// Creates a logical OR expression that performs logical OR operation with the current | ||
/// expression. | ||
/// | ||
/// If the operand isn't a boolean type, it gets coerced to a boolean. The number 0 is coerced to false, | ||
/// the number 1 is coerced to `true`, strings are coerced to `false` (but strings prefixed with a number | ||
/// are coerced to `true`, for example "[email protected]"). | ||
/// | ||
/// - Parameter expression: The expression to OR with the current expression. | ||
/// - Returns: A logical OR Expression. | ||
public func or(_ expression: ExpressionProtocol) -> ExpressionProtocol { | ||
|