Binaries - pattern matching

Inswitch Solutions - Erlang Evaluation erlang@REDACTED
Wed Mar 5 15:30:17 CET 2003


I have executed the following commands in the Erlang shell:
1) L = [1,2,3,4,5,6,7,8,9,10,11,12,13].
2) LB = list_to_binary(L).
3) <<A:10/unit:8, B:3/unit:8>> = LB.
4) A.
5) 4759477275222530853130

Please, does anyone know what type is 'A' variable ?
'A' variable contains 10 bytes, how can I retrieve each byte from it?


Thanks,
Eduardo Figoli
INSwitch Solutions.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20030305/7d8bbbfc/attachment.htm>


More information about the erlang-questions mailing list