How to build a binary of 1024 zeros?

Romain Lenglet <>
Mon May 29 12:03:46 CEST 2006


Andrew Lentvorski wrote:
> Is there an equivalent to lists:duplicate(1024, 0), but for
> binaries?

Sorry, the correct expression is:
<<0:(8*1024)>>

-- 
Romain LENGLET



More information about the erlang-questions mailing list