<div dir="ltr">I've done a lot of development, but it's been quite a while since I've done anything<br>functional.  Erlang is still brand-new for me, so be warned. <br><br>I've got a (conceptual) string arriving in my sw as a binary, e.g. <<"stuff.junk.excess">><br>and trying to transform it into a list of strings, e.g. ["stuff", "junk", "excess"]<br>The mechanism I'm using is giving me a list of lists of binaries, e.g.<br> [ [<<"s">>, <<"t">>, <<"u">>, <<"f">>, <<"f">>], [<<"j">>, <<"u">>   (etc)<br><br>I ended up hacking it to just take each of the lists of binaries and run it through<br>list_to_binary and then binary to list.  The result is what I really wanted, which is <br>    list_to_binary(binary_to_list( [<<"s">>, <<"t">>, <<"u">>, <<"f">>, <<"f">>]))<br>gives me back<br>    "stuff"<br><br>That's all well and good, and functional, but has two problems:<br>1) I honestly don't get why it worked; I would expect those two operations to<br>    give me back something unchanged.<br>2) There's got to be a more graceful way to achieve this.<br><br>Thoughts?<br><br><br><br></div>