Methods
(static) even(a) → {boolean}
Return true if a value is even, false otherwise.
Haskell> even :: (Integral a) => a -> Bool
Parameters:
| Name | Type | Description |
|---|---|---|
a |
* | Any value |
- Source:
Returns:
true if even, false otherwise
- Type
- boolean
(static) odd(a) → {boolean}
Return true if a value is odd, false otherwise.
Haskell> odd :: (Integral a) => a -> Bool
Parameters:
| Name | Type | Description |
|---|---|---|
a |
* | Any value |
- Source:
Returns:
true if odd, false otherwise
- Type
- boolean