Skip to content

Commit

Permalink
Fix truth table for implication in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Drenmi committed May 3, 2024
1 parent bdc902c commit 90f0ca8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docsite/source/operations.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Argument 1 | Argument 2 | Result
--- | --- | ---
true | true | true
true | false | false
false | true | false
false | false | false
false | true | true
false | false | true

``` ruby
is_empty = build do
Expand All @@ -61,6 +61,16 @@ is_empty.call(["array"]).success? # => false
is_empty.call({key: "value"}).success? # => false
```

Note that if the premise is false, the value of the conclusion doesn't matter

``` ruby
is_integer_greater_than_two = build do
int? > gt?(2)
end

is_integer_greater_than_two.call("string").success? # => true
```

### Exclusive or (`^`, `xor`)

> Returns true if at most one of its arguments are valid; otherwise, false
Expand Down

0 comments on commit 90f0ca8

Please sign in to comment.