<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Have you tried iolist_to_binary ?<div class=""><br class=""></div><div class=""><div class="">1> iolist_to_binary([<<"A">>,"4",<<"B">>,"c",<<"d">>]).</div><div class=""><<"A4Bcd">></div><div class="">2> binary_to_list(v(-1)).</div><div class="">"A4Bcd"</div><div class="">3></div></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 9, 2016, at 16:48, Thomas Elsgaard <<a href="mailto:thomas.elsgaard@gmail.com" class="">thomas.elsgaard@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi </div><div class=""><br class=""></div><div class="">I am having some difficulties by flattening a list which looks like this:</div><div class=""><br class=""></div><div class="">[<<"A">>,"4",<<"B">>,"c",<<"d">>]</div><div class=""><br class=""></div><div class="">After flattening, it should look like this: A4Bcd</div><div class=""><br class=""></div><div class="">Any good ways to do this ?</div><div class=""><br class=""></div><div class="">Thomas</div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><br class=""></div></div></div>
_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></blockquote></div><br class=""></div></body></html>