diff options
author | Robert Peterson <robert.peterson@gmail.com> | 2019-04-18 07:38:28 -0700 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2019-04-18 16:16:05 +0100 |
commit | f2b09ca44f9448cf351093abdf50f9bb6e411423 (patch) | |
tree | 40ab49c7586516f796f0ccc359ca035da7b0af3c /src | |
parent | aecd1d23fc3fa3bb5bf5749770ef8b9b7a9ee068 (diff) | |
download | gleam_stdlib-f2b09ca44f9448cf351093abdf50f9bb6e411423.tar.gz gleam_stdlib-f2b09ca44f9448cf351093abdf50f9bb6e411423.zip |
Add str:append
Diffstat (limited to 'src')
-rw-r--r-- | src/str.gleam | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/str.gleam b/src/str.gleam index 00268f8..8a7708b 100644 --- a/src/str.gleam +++ b/src/str.gleam @@ -34,6 +34,10 @@ pub fn replace(string, pattern, with) { |> iodata:to_string } +pub fn append(s1, s2) { + iodata:new(s1) |> iodata:append(_, s2) |> iodata:to_string(_) +} + pub external fn from_int(Int) -> String = "erlang" "integer_to_binary" pub external fn parse_int(String) -> Result(Int, ParseError) = "gleam__stdlib" "parse_int"; |