Skip to content

Instantly share code, notes, and snippets.

@dLuna
Created October 1, 2013 19:02
Show Gist options
  • Save dLuna/6783385 to your computer and use it in GitHub Desktop.
Save dLuna/6783385 to your computer and use it in GitHub Desktop.
--- a/src/binstr.erl
+++ b/src/binstr.erl
@@ -326,4 +326,6 @@ join(Binaries, Glue) ->
join([H], _Glue, Acc) ->
list_to_binary(lists:reverse([H | Acc]));
join([H|T], Glue, Acc) ->
- join(T, Glue, [Glue, H | Acc]).
+ join(T, Glue, [Glue, H | Acc]);
+join([], _Glue, _Acc) ->
+ <<"">>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment