diff options
author | Louis Pilfold <louis@lpil.uk> | 2019-06-25 22:48:07 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2019-06-25 22:48:07 +0100 |
commit | 2c2541750ca4b7b604070c75c18d84be833c97d5 (patch) | |
tree | f5e63d941a1c7e2c2d4dff1d81c43fa2766308ae /src/std/bool.gleam | |
parent | 96c20b8ebf8420fbba75c97fa08eaeb34e8dc394 (diff) | |
download | gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.tar.gz gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.zip |
stdlib namespace std -> gleam
Diffstat (limited to 'src/std/bool.gleam')
-rw-r--r-- | src/std/bool.gleam | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/std/bool.gleam b/src/std/bool.gleam deleted file mode 100644 index 985f0d6..0000000 --- a/src/std/bool.gleam +++ /dev/null @@ -1,38 +0,0 @@ -import std/order - -pub fn negate(bool) { - case bool { - | True -> False - | False -> True - } -} - -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 { - | True -> True - | False -> b - } -} - -pub fn min(a, b) { - case a { - | False -> False - | True -> b - } -} - -pub fn to_int(bool) { - case bool { - | False -> 0 - | True -> 1 - } -} |