[erlang-questions] Binary comprehension (was Re: double to float)

Ulf Wiger (TN/EAB) <>
Fri Dec 7 22:02:45 CET 2007


Zvi skrev:
> Is there are something like trhis in R12 ?
> 
>   <<B:8 || B<-[1,2,3]>>. 
> 
> output should be: 
> 
>   <<1,2,3>> 
> 
> Zvi 

Almost:

Eshell V5.6  (abort with ^G)

1> << <<B:8>> || B <- [1,2,3] >>.
<<1,2,3>>

BR,
Ulf W



More information about the erlang-questions mailing list