<div dir="ltr">Thanks! I tried many other things, but you solved it, thanks! Now I also learned something new today ;-)<div><br></div><div>Thomas</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, 9 Nov 2016 at 20:50 Brujo Benavides <<a href="mailto:fernando.benavides@inakanetworks.com">fernando.benavides@inakanetworks.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg">Have you tried iolist_to_binary ?<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div class="gmail_msg">1> iolist_to_binary([<<"A">>,"4",<<"B">>,"c",<<"d">>]).</div><div class="gmail_msg"><<"A4Bcd">></div><div class="gmail_msg">2> binary_to_list(v(-1)).</div><div class="gmail_msg">"A4Bcd"</div><div class="gmail_msg">3></div></div><div class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"></blockquote></div></div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">On Nov 9, 2016, at 16:48, Thomas Elsgaard <<a href="mailto:thomas.elsgaard@gmail.com" class="gmail_msg" target="_blank">thomas.elsgaard@gmail.com</a>> wrote:</div><br class="m_-7173876398191416046Apple-interchange-newline gmail_msg"></blockquote></div></div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg">HiĀ </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I am having some difficulties by flattening a list which looks like this:</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">[<<"A">>,"4",<<"B">>,"c",<<"d">>]</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">After flattening, it should look like this: A4Bcd</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Any good ways to do this ?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thomas</div><div class="gmail_msg"><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo" class="gmail_msg"><br class="gmail_msg"></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo" class="gmail_msg"><br class="gmail_msg"></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:menlo" class="gmail_msg"><br class="gmail_msg"></div></div></div></div></blockquote></div></div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">
_______________________________________________<br class="gmail_msg">erlang-questions mailing list<br class="gmail_msg"><a href="mailto:erlang-questions@erlang.org" class="gmail_msg" target="_blank">erlang-questions@erlang.org</a><br class="gmail_msg"><a href="http://erlang.org/mailman/listinfo/erlang-questions" class="gmail_msg" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br class="gmail_msg"></div></blockquote></div><br class="gmail_msg"></div></div></blockquote></div>