aboutsummaryrefslogtreecommitdiff
path: root/gen/iodata.erl
blob: 970441387cb0a2d088e8f47bdb1f8b10ffa236e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
-module(iodata).
-compile(no_auto_import).

-export([prepend/2, append/2, from/1, to_string/1, byte_size/1]).

prepend(A, B) ->
    gleam__stdlib:iodata_concat(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).