aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gleam/int.gleam3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gleam/int.gleam b/src/gleam/int.gleam
index a638602..6a93e2f 100644
--- a/src/gleam/int.gleam
+++ b/src/gleam/int.gleam
@@ -32,3 +32,6 @@ pub fn max(a: Int, b: Int) -> Int {
}
}
+pub fn is_even(x: Int) -> Bool {
+ x % 2 == 0
+}