As cute as that is (and it is damn cute!), calling back into Perl and then invoking the regex engine won't make for a performant solution.
Also, as I've highlighted in my update above, I want the positions of the set bits, not the bit patterns themselves.
In reply to Re^2: Odometer pattern iterator (in C).
by BrowserUk
in thread Odometer pattern iterator (in C). (Updated.)
by BrowserUk
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |