[erlang-questions] does erlang binary append need to convert to list first?

wenew zhang wenewboy@REDACTED
Thu Mar 14 18:42:59 CET 2013


on erl command shell,
A=list_to_binary("abc").
B=list_to_binary("def").
i want A+B convert to <<"abcdef">>
now i need do it as below:
list_to_binary(binary_to_list(A)++binary_to_list(B)).

<<"abcdef">>

is there a simple method make A+B in binary type?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130315/ea09face/attachment.htm>


More information about the erlang-questions mailing list