-2

How to convert that binary format to this [<<"xys">>,<<"est">>] -> [<<"xys","est">>].

Hari Haran
  • 1,543
  • 4
  • 13
  • 25

1 Answers1

4

Since [<<"xys","est">>] is the same as [<<"xysest">>] you can do:

1> [A,B] = [<<"xys">>,<<"est">>].   
[<<"xys">>,<<"est">>]
2> [<<A/binary, B/binary>>].
[<<"xysest">>]
couchemar
  • 1,927
  • 19
  • 22
  • i want the ans like this [<<"xys","est">> – Hari Haran Jul 07 '14 at 11:41
  • 2
    [<<"xysest">>] == [<<"xys","est">>]. There is no other way to put it : those are two expressions for the same "thing". If this is unsatisfactory to you, consider revising how to handle binary data in erlang. – Berzemus Jul 07 '14 at 12:18