diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gleam/int.gleam | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gleam/int.gleam b/src/gleam/int.gleam index 6a93e2f..9ff5328 100644 --- a/src/gleam/int.gleam +++ b/src/gleam/int.gleam @@ -35,3 +35,7 @@ pub fn max(a: Int, b: Int) -> Int { pub fn is_even(x: Int) -> Bool { x % 2 == 0 } + +pub fn is_odd(x: Int) -> Bool { + x % 2 != 0 +} |