[erlang-questions] scan to list

Henning Diedrich hd2010@REDACTED
Wed May 12 20:05:09 CEST 2010


:-) I would try to excuse that with 'for the sake of clarity.'

Yes, these are numbers that happen to come in one byte integers and my 
be mixed with other numbers that are bigger than one byte.


Zoltan Lajos Kis wrote:
> On 5/12/2010 7:16 PM, Henning Diedrich wrote:
>> Hello list,
>>
>> is there a better/shorter way to write this:
>>
>> <<ColumnTypeBinaries:ColumnCount/binary, _/binary>> = Stream,
>>    ColumnTypes = binary_to_list(ColumnTypeBinaries),
>>
>> Thanks a lot!
>> Henning
>>
> Well... are you sure you have to convert that binary to a list ? :o)
>


More information about the erlang-questions mailing list