aboutsummaryrefslogtreecommitdiff
path: root/src/bool.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/bool.gleam')
-rw-r--r--src/bool.gleam18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/bool.gleam b/src/bool.gleam
index 46cca60..f954897 100644
--- a/src/bool.gleam
+++ b/src/bool.gleam
@@ -1,4 +1,4 @@
-// import order
+import order
pub fn negate(bool) {
case bool {
@@ -7,14 +7,14 @@ pub fn negate(bool) {
}
}
-// pub fn compare(a, b) {
-// case {a, b} {
-// | {True, True} -> order:Eq
-// | {True, False} -> order:Gt
-// | {False, False} -> order:Eq
-// | {False, True} -> order:Lt
-// }
-// }
+pub fn compare(a, b) {
+ case {a, b} {
+ | {True, True} -> order:Eq
+ | {True, False} -> order:Gt
+ | {False, False} -> order:Eq
+ | {False, True} -> order:Lt
+ }
+}
pub fn max(a, b) {
case a {