[erlang-questions] List troubles

Thomas Elsgaard thomas.elsgaard@REDACTED
Wed Nov 9 21:26:30 CET 2016


Thanks! I tried many other things, but you solved it, thanks! Now I also
learned something new today ;-)

Thomas

On Wed, 9 Nov 2016 at 20:50 Brujo Benavides <
fernando.benavides@REDACTED> wrote:

> 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/045718f6/attachment.htm>


More information about the erlang-questions mailing list