Serializing a list

sapan shah sapan.gcet@REDACTED
Tue Oct 27 07:40:43 CET 2009


Hi,

Lets assume that we have a list where,
List -> integer | List;

eg L1 = [1,[[2,3]],[4]].
when I perform
binary_to_list(list_to_binary(L1))
The result is [1,2,3,4]. I loose the original structure of the list.
How do then the serialization of the list is done?

Is there any other way we can perform 'binary_to_list(list_to_binary(L))'
functionality maintaining the structure of the list??

-- 
Regards,
Sapan Shah


More information about the erlang-questions mailing list