"... the book was published in 2005, and has been available as a free download since 2008"
Actually he didn't follow the advice.
Actually he didn't follow the advice.
The new book would not be a “variant”, it would be a completely different book. To gain the expertise needed to to a good job with the new completely different book would require that I spend years studying Raku and thinking about what would work and how to make it work well. Even once I knew what I wanted to write about in HOP, that book took five years to write.
Even if someone were to pay me full-time to do nothing but produce a Raku book, it would still take me at least four years to do it.
It is not too late for you to become one.
use v5
use Stream 'node';
sub iterator_to_stream {
my $it = shift;
my $v = $it->();
return unless defined $v;
node($v, sub { iterator_to_stream($it) });
}
vs use v6;
sub iterator-to-stream ( Iterator $it ) {
Seq.new($it)
}