If you are seeking for efficiency, you may be interested in manage your binary array as a bit vector. See vec and unpack. There is also a Bit::Vector module, but I've never used it.
citromatik
In reply to Re: sequence of positions to binary sequence
by citromatik
in thread sequence of positions to binary sequence
by coldy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |