[erlang-questions] List troubles

Brujo Benavides fernando.benavides@REDACTED
Wed Nov 9 20:50:21 CET 2016


Have you tried iolist_to_binary ?

1> iolist_to_binary([<<"A">>,"4",<<"B">>,"c",<<"d">>]).
<<"A4Bcd">>
2> binary_to_list(v(-1)).
"A4Bcd"
3>

> On Nov 9, 2016, at 16:48, Thomas Elsgaard <thomas.elsgaard@REDACTED> wrote:
> 
> Hi 
> 
> I am having some difficulties by flattening a list which looks like this:
> 
> [<<"A">>,"4",<<"B">>,"c",<<"d">>]
> 
> After flattening, it should look like this: A4Bcd
> 
> Any good ways to do this ?
> 
> Thomas
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161109/8671bee6/attachment.htm>


More information about the erlang-questions mailing list