diff options
author | Louis Pilfold <louis@lpil.uk> | 2020-03-05 11:24:57 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-03-05 11:24:57 +0000 |
commit | e8b2a22b47a0a7677aae55d25a2bacf3969cc788 (patch) | |
tree | f3cef3896d7bce0b901309d76141c74373bd75bc /gen/src/gleam@string.erl | |
parent | 063c640b5e59c00262fd17b62c33dc470c1e1863 (diff) | |
download | gleam_stdlib-e8b2a22b47a0a7677aae55d25a2bacf3969cc788.tar.gz gleam_stdlib-e8b2a22b47a0a7677aae55d25a2bacf3969cc788.zip |
string.concat
Diffstat (limited to 'gen/src/gleam@string.erl')
-rw-r--r-- | gen/src/gleam@string.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gen/src/gleam@string.erl b/gen/src/gleam@string.erl index 722ea09..c94fb9f 100644 --- a/gen/src/gleam@string.erl +++ b/gen/src/gleam@string.erl @@ -1,7 +1,7 @@ -module(gleam@string). -compile(no_auto_import). --export([length/1, lowercase/1, uppercase/1, compare/2, reverse/1, split/2, replace/3, append/2]). +-export([length/1, lowercase/1, uppercase/1, compare/2, reverse/1, split/2, replace/3, append/2, concat/1]). length(A) -> string:length(A). @@ -33,3 +33,6 @@ append(First, Second) -> gleam@iodata:to_string( gleam@iodata:append(gleam@iodata:new(First), Second) ). + +concat(Strings) -> + gleam@iodata:to_string(gleam@iodata:from_strings(Strings)). |