diff options
author | Louis Pilfold <louis@lpil.uk> | 2021-08-08 20:39:26 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-08-08 20:39:26 +0100 |
commit | b0456846292552c3136b40ba5077fe776cb1f71e (patch) | |
tree | c933ee96b48724c68388aeef66aa6e10ff324ef3 /src/gleam_stdlib.erl | |
parent | 59b3954de6c3fe07398403592331e27496cd7811 (diff) | |
download | gleam_stdlib-b0456846292552c3136b40ba5077fe776cb1f71e.tar.gz gleam_stdlib-b0456846292552c3136b40ba5077fe776cb1f71e.zip |
bit_string.concat
Diffstat (limited to 'src/gleam_stdlib.erl')
-rw-r--r-- | src/gleam_stdlib.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gleam_stdlib.erl b/src/gleam_stdlib.erl index fc1d17e..c3aa317 100644 --- a/src/gleam_stdlib.erl +++ b/src/gleam_stdlib.erl @@ -9,9 +9,9 @@ string_ends_with/2, string_pad/4, decode_tuple2/1, decode_tuple3/1, decode_tuple4/1, decode_tuple5/1, decode_tuple6/1, decode_map/1, bit_string_int_to_u32/1, bit_string_int_from_u32/1, decode_result/1, - bit_string_append/2, bit_string_part_/3, decode_bit_string/1, - compile_regex/2, regex_match/2, regex_split/2, regex_scan/2, - base_decode64/1, wrap_list/1]). + bit_string_part_/3, decode_bit_string/1, compile_regex/2, + regex_match/2, regex_split/2, regex_scan/2, base_decode64/1, + wrap_list/1, bit_string_concat/1]). should_equal(Actual, Expected) -> ?assertEqual(Expected, Actual), @@ -171,8 +171,8 @@ string_pop_grapheme(String) -> _ -> {error, nil} end. -bit_string_append(First, Second) -> - <<First/bitstring, Second/bitstring>>. +bit_string_concat(BitStrings) -> + iolist_to_binary(BitStrings). bit_string_part_(Bin, Pos, Len) -> try {ok, binary:part(Bin, Pos, Len)} |