mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
fix order of operations in Bool tests on AND
This commit is contained in:
parent
b73401ab52
commit
f287a77035
1 changed files with 5 additions and 5 deletions
|
@ -49,11 +49,11 @@ false = @Bool False
|
|||
## gate. The infix operator `&&` can also be used as shorthand for
|
||||
## `Bool.and`.
|
||||
##
|
||||
## expect Bool.and Bool.true Bool.true == Bool.true
|
||||
## expect Bool.true && Bool.true == Bool.true
|
||||
## expect Bool.false && Bool.true == Bool.false
|
||||
## expect Bool.true && Bool.false == Bool.false
|
||||
## expect Bool.false && Bool.false == Bool.false
|
||||
## expect (Bool.and Bool.true Bool.true) == Bool.true
|
||||
## expect (Bool.true && Bool.true) == Bool.true
|
||||
## expect (Bool.false && Bool.true) == Bool.false
|
||||
## expect (Bool.true && Bool.false) == Bool.false
|
||||
## expect (Bool.false && Bool.false) == Bool.false
|
||||
##
|
||||
## **Performance Note** that in Roc the `&&` and `||` work the same way as any
|
||||
## other function. However, in some languages `&&` and `||` are special-cased.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue