Ecosystem module version v1 to 1?
It appears that the ecosystem or community prefers modules' strings without a leading 'v'. Since I have submitted both styles, I would like to change one module to a newer version string without the 'v'. Is this possible? rir
ones and twos compliment
Hi All, Is there an easy way to print ones' and two's compliment of a 32 bit integer? Many thanks, -T sub ones-complement(Int $num) { my $binary = $num.base(2); my $complement = ''; for $binary.comb -> $bit { $complement ~= $bit eq '0' ?? '1' !! '0'; } return $compl