Raku: a language that counts to infinity (Part 2)

In this part, let’s look at infinite sequences from another angle: let’s start collecting the values. First of all, Raku has a pair of built-in routines gather and take. They are useful when you need to collect data that’s computed along the way. For example: my @data = gather { for ^50 { my $value … Continue reading “Raku: a language that counts to infinity (Part 2)”