in reply to mini-golf: convert integer into list of powers of two

Here is a Perl 6 solution, not golfed very hard: