RosettaCodeData/Task/Van-der-Corput-sequence/Perl-6/van-der-corput-sequence-2.pl6
2015-11-18 06:14:39 +00:00

7 lines
123 B
Raku

sub VdC($base = 2) {
map {
[+] $_ && .polymod($base xx *) Z/ [\*] $base xx *
}, ^Inf
}
.say for VdC[^10];