Methods
(static) and(a, b) → {boolean}
Boolean "and". Return true if both arguments are true, false otherwise.
Haskell> (&&) :: Bool -> Bool -> Bool
Parameters:
| Name | Type | Description | 
|---|---|---|
a | 
            
            boolean | A boolean value  | 
        
b | 
            
            boolean | A boolean value  | 
        
- Source:
 
Returns:
a && b
- Type
 - boolean
 
Example
and(true, true); // => true
const a = 5 > 0;
const b = 0 > 5;
and(a, b);       // => false
        
            
    
    (static) not(a) → {boolean}
Boolean "not". Return true if the argument is false, false otherwise.
Haskell> not :: Bool -> Bool
Parameters:
| Name | Type | Description | 
|---|---|---|
a | 
            
            boolean | A boolean value  | 
        
- Source:
 
Returns:
!a
- Type
 - boolean
 
Example
not(true);       // => false
not(false);      // => true
const a = 5 > 0;
const b = 0 > 5;
not(a);          // => false
not(b);          // => true
        
            
    
    (static) or(a, b) → {boolean}
Boolean "or". Return true if either argument is true, false otherwise.
Haskell> (||) :: Bool -> Bool -> Bool
Parameters:
| Name | Type | Description | 
|---|---|---|
a | 
            
            boolean | A boolean value  | 
        
b | 
            
            boolean | A boolean value  | 
        
- Source:
 
Returns:
a || b
- Type
 - boolean
 
Example
or(true, false); // => true
const a = 5 > 0;
const b = 0 > 5;
or(a, b);        // => true