Here is a Perl 6 solution, not golfed very hard:
In reply to Re: mini-golf: convert integer into list of powers of two
by moritz
in thread mini-golf: convert integer into list of powers of two
by xyzzy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |