mirror of https://github.com/AMT-Cheif/drift.git
I literally just fixed a typo in a GitHub repo...
I thought that this exists only in memes... But, here you go. My nerd-instincs won't let this tiny iritating thing to exists. So I fix it. Change '!' to '|' - because at first I thought that '!' is for negation, and '|' is not supported, for some reason. Let other nerds not have same mistake.
This commit is contained in:
parent
94fe04ee35
commit
0dff608ab8
|
@ -35,11 +35,15 @@ Future<List<Animal>> findAnimalsByLegs(int legCount) {
|
|||
```
|
||||
|
||||
## Boolean algebra
|
||||
You can nest boolean expressions by using the `&`, `!` operators and the `not` method
|
||||
You can nest boolean expressions by using the `&`, `|` operators and the `not` method
|
||||
exposed by moor:
|
||||
|
||||
```dart
|
||||
// find all animals that aren't mammals and have 4 legs
|
||||
select(animals)..where((a) => a.isMammal.not() & a.amountOfLegs.equals(4))
|
||||
select(animals)..where((a) => a.isMammal.not() & a.amountOfLegs.equals(4));
|
||||
|
||||
// find all animals that are mammals or have 2 legs
|
||||
select(animals)..where((a) => a.isMammal | a.amountOfLegs.equals(2));
|
||||
```
|
||||
|
||||
## Arithmetic
|
||||
|
|
Loading…
Reference in New Issue