From 2c2541750ca4b7b604070c75c18d84be833c97d5 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Tue, 25 Jun 2019 22:48:07 +0100 Subject: stdlib namespace std -> gleam --- src/std/int.gleam | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/std/int.gleam (limited to 'src/std/int.gleam') 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 - } - } -} -- cgit v1.2.3