diff options
author | Louis Pilfold <louis@lpil.uk> | 2018-12-01 23:47:45 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2018-12-01 23:47:45 +0000 |
commit | 466eda4accdaa2e70b4f16a5dc885dcb23d8dac5 (patch) | |
tree | 5e94c80d04d7257359706d8fc683576792cc0747 /src/gleam__stdlib.erl | |
parent | fd7dc023cbb512d51c5ac7a45271d1625fa945af (diff) | |
download | gleam_stdlib-466eda4accdaa2e70b4f16a5dc885dcb23d8dac5.tar.gz gleam_stdlib-466eda4accdaa2e70b4f16a5dc885dcb23d8dac5.zip |
iodata
Diffstat (limited to 'src/gleam__stdlib.erl')
-rw-r--r-- | src/gleam__stdlib.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gleam__stdlib.erl b/src/gleam__stdlib.erl index 5942a0f..e4b76f7 100644 --- a/src/gleam__stdlib.erl +++ b/src/gleam__stdlib.erl @@ -10,5 +10,10 @@ expect_false(A) -> ?assertNot(A). map_fetch(Map, Key) -> case maps:find(Key, Map) of error -> {error, {}}, - Found -> Found + OkFound -> OkFound end. + +iodata_append(X, Data) -> [X | Y]. +iodata_prepend(X, Data) -> [Y, X]. + +identity(X) -> X. |