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 de9ce8b..1449d09 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, min/2]).
+-export([parse/1, to_string/1, to_base_string/2, compare/2, min/2, max/2]).
parse(A) ->
gleam_stdlib:parse_int(A).
@@ -35,3 +35,12 @@ min(A, B) ->
false ->
B
end.
+
+max(A, B) ->
+ case A > B of
+ true ->
+ A;
+
+ false ->
+ B
+ end.