diff options
Diffstat (limited to 'gen/iodata.erl')
-rw-r--r-- | gen/iodata.erl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gen/iodata.erl b/gen/iodata.erl new file mode 100644 index 0000000..0eaaca2 --- /dev/null +++ b/gen/iodata.erl @@ -0,0 +1,18 @@ +-module(iodata). + +-export([prepend/2, append/2, from/1, to_string/1, byte_size/1]). + +prepend(A, B) -> + gleam__stdlib:iodata_prepend(A, B). + +append(A, B) -> + gleam__stdlib:iodata_append(A, B). + +from(A) -> + gleam__stdlib:identity(A). + +to_string(A) -> + erlang:iolist_to_binary(A). + +byte_size(A) -> + erlang:iolist_size(A). |