aboutsummaryrefslogtreecommitdiff
path: root/src/std/int.gleam
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-06-25 22:48:07 +0100
committerLouis Pilfold <louis@lpil.uk>2019-06-25 22:48:07 +0100
commit2c2541750ca4b7b604070c75c18d84be833c97d5 (patch)
treef5e63d941a1c7e2c2d4dff1d81c43fa2766308ae /src/std/int.gleam
parent96c20b8ebf8420fbba75c97fa08eaeb34e8dc394 (diff)
downloadgleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.tar.gz
gleam_stdlib-2c2541750ca4b7b604070c75c18d84be833c97d5.zip
stdlib namespace std -> gleam
Diffstat (limited to 'src/std/int.gleam')
-rw-r--r--src/std/int.gleam21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/std/int.gleam b/src/std/int.gleam
deleted file mode 100644
index b1f8256..0000000
--- a/src/std/int.gleam
+++ /dev/null
@@ -1,21 +0,0 @@
-import std/order
-
-pub enum NotAnInt =
- | NotAnInt
-
-pub external fn parse(String) -> Result(Int, NotAnInt) = "gleam__stdlib" "parse_int";
-
-pub external fn to_string(Int) -> String = "erlang" "integer_to_binary"
-
-pub external fn to_base_string(Int, Int) -> String = "erlang" "integer_to_binary"
-
-pub fn compare(a, b) {
- case a == b {
- | True -> order:Eq
- | False ->
- case a < b {
- | True -> order:Lt
- | False -> order:Gt
- }
- }
-}