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 /gen/src/std@bool.erl | |
parent | 96c20b8ebf8420fbba75c97fa08eaeb34e8dc394 (diff) | |
download | gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.tar.gz gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.zip |
stdlib namespace std -> gleam
Diffstat (limited to 'gen/src/std@bool.erl')
-rw-r--r-- | gen/src/std@bool.erl | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/gen/src/std@bool.erl b/gen/src/std@bool.erl deleted file mode 100644 index c77a2d8..0000000 --- a/gen/src/std@bool.erl +++ /dev/null @@ -1,55 +0,0 @@ --module(std@bool). --compile(no_auto_import). - --export([negate/1, compare/2, max/2, min/2, to_int/1]). - -negate(Bool) -> - case Bool of - true -> - false; - - false -> - true - end. - -compare(A, B) -> - case {A, B} of - {true, true} -> - eq; - - {true, false} -> - gt; - - {false, false} -> - eq; - - {false, true} -> - lt - end. - -max(A, B) -> - case A of - true -> - true; - - false -> - B - end. - -min(A, B) -> - case A of - false -> - false; - - true -> - B - end. - -to_int(Bool) -> - case Bool of - false -> - 0; - - true -> - 1 - end. |