Skip to content

Commit

Permalink
Merge pull request #11 from botamochi0x12/docs/example-xor
Browse files Browse the repository at this point in the history
docs: Update `examples` on README.md
  • Loading branch information
botamochi0x12 committed Mar 13, 2024
2 parents 13bbfdb + 5b73013 commit f6df1e2
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 f6df1e2

Please sign in to comment.