aboutsummaryrefslogtreecommitdiff
path: root/aoc-2020-gleam/src/ext/genericx.gleam
diff options
context:
space:
mode:
authorTomasz Chojnacki <tomaszchojnacki2001@gmail.com>2023-03-02 21:40:59 +0100
committerTomasz Chojnacki <tomaszchojnacki2001@gmail.com>2023-03-02 21:40:59 +0100
commit6c661db5b3e167d45554f7c5e4838dbc3bffa63a (patch)
tree6ba5eebddc1713f5bd4ee9fe740937a8031d151e /aoc-2020-gleam/src/ext/genericx.gleam
parent2ba7501d516afa4ab240faccefb6a3f72223598e (diff)
downloadgleam_aoc2020-6c661db5b3e167d45554f7c5e4838dbc3bffa63a.tar.gz
gleam_aoc2020-6c661db5b3e167d45554f7c5e4838dbc3bffa63a.zip
Refactor using constructs from Gleam v0.27
Diffstat (limited to 'aoc-2020-gleam/src/ext/genericx.gleam')
-rw-r--r--aoc-2020-gleam/src/ext/genericx.gleam7
1 files changed, 7 insertions, 0 deletions
diff --git a/aoc-2020-gleam/src/ext/genericx.gleam b/aoc-2020-gleam/src/ext/genericx.gleam
new file mode 100644
index 0000000..57ce450
--- /dev/null
+++ b/aoc-2020-gleam/src/ext/genericx.gleam
@@ -0,0 +1,7 @@
+pub fn equals(left: a, right: a) -> Bool {
+ left == right
+}
+
+pub fn different(left: a, than right: a) -> Bool {
+ left != right
+}