aboutsummaryrefslogtreecommitdiff
path: root/gen/src/gleam@int.erl
diff options
context:
space:
mode:
Diffstat (limited to 'gen/src/gleam@int.erl')
-rw-r--r--gen/src/gleam@int.erl11
1 files changed, 10 insertions, 1 deletions
diff --git a/gen/src/gleam@int.erl b/gen/src/gleam@int.erl
index ea97785..de9ce8b 100644
--- a/gen/src/gleam@int.erl
+++ b/gen/src/gleam@int.erl
@@ -1,7 +1,7 @@
-module(gleam@int).
-compile(no_auto_import).
--export([parse/1, to_string/1, to_base_string/2, compare/2]).
+-export([parse/1, to_string/1, to_base_string/2, compare/2, min/2]).
parse(A) ->
gleam_stdlib:parse_int(A).
@@ -26,3 +26,12 @@ compare(A, B) ->
gt
end
end.
+
+min(A, B) ->
+ case A < B of
+ true ->
+ A;
+
+ false ->
+ B
+ end.