[erlang-questions] Bit String Comprehension Question

David Mercer <>
Tue Sep 9 16:18:28 CEST 2008


Why does the bit-string comprehension #133 below work whereas #134 is a
syntax error?

 

133> << <<X:N>> || {X,N} <- [{3,5}] >>.


<<3:5>>

134> << Bin || Bin <- [<<3:5>>] >>.         

* 1: syntax error before: '||'

 

Please advise.  Thank-you.

 

David Mercer

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080909/113cff6d/attachment.html>


More information about the erlang-questions mailing list