Bit twiddling
Thomas Lindgren
thomasl_erlang@REDACTED
Fri Apr 1 11:39:17 CEST 2005
--- "Richard A. O'Keefe" <ok@REDACTED> wrote:
> Create table:
> Table = list_to_tuple([0, 1, 1, ...])
>
> Why not just write Table = {0, 1, 1, ...}?
> This isn't commented, but it may be of use.
Er, good point. I seem to recall an intention to end
up with something general, like:
Table =
list_to_tuple(
[ count_bits(N) || N <- lists:seq(1,Max) ]
)
but that got unaccountably lost on the way :-)
Best,
Thomas
__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest
More information about the erlang-questions
mailing list