aboutsummaryrefslogtreecommitdiff
path: root/src/std/int.gleam
diff options
context:
space:
mode:
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
- }
- }
-}