Skip to content

Commit

Permalink
docs: Update examples on README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
botamochi0x12 authored Mar 11, 2024
1 parent 13bbfdb commit 5b73013
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ assert((truthy(true) | true ) == true);
assert((truthy(true) | false) == true);
assert((truthy(false) | true ) == true);
assert((truthy(false) | false) == false);
%% Operation `XOR`
assert((truthy(true) .xor(true) ) == false);
assert((truthy(true) .xor(false)) == true);
assert((truthy(false).xor(true) ) == true);
assert((truthy(false).xor(false)) == false);
```

The class `Truthiness` supports lazy evaluation.
Expand Down

0 comments on commit 5b73013

Please sign in to comment.