aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2020-03-05 11:46:08 +0000
committerLouis Pilfold <louis@lpil.uk>2020-03-05 11:46:08 +0000
commite60487580a30a51e896c32210198758d2e15a4d9 (patch)
tree5c77247bf53a3cb8702449b8db55e9b8108a684b /src
parent18e1eb04011299fcd81623b22e13711ec736e7c8 (diff)
downloadgleam_stdlib-e60487580a30a51e896c32210198758d2e15a4d9.tar.gz
gleam_stdlib-e60487580a30a51e896c32210198758d2e15a4d9.zip
int.is_even
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
+}