The **Perl 6 One-Liner Advent Calendar 2018** is over! Letβs make a quick overview of what we have covered so far. There were a few themes covered.

First, some one-liners from the **Perl 6 Calendar 2019** were explained in more detail. We looked at how to generate random passwords and random integers, how to print current date, and at how good Perl 6 is doing with Unicode.

Second, a number of **problems from ****Project Euler** were solved in Perl 6: #1 grepping dividable numbers, #2 adding up even Fibonacci numbers, #4 testing palindromic numbers, #5 finding the least common divider, #7 printing the given Fibonacci number, #13 computing a sum of big numbers, #19 counting Sundays and counting them differently, #25 finding a Fibonacci number of the given length, and #34 finding a sum of the numbers that are equal to the sum of factorials of their digits.

Third, we looked at some isolated **elements of Perl 6 syntax**, such as meta-operator X, range and sequence operators, reduction operator, or how rational numbers work in Perl 6 and how to use complex number in geometry. A numerous times, we were using the built-in routines `map` and `grep`, and the `WhateverCode` objects.

Fourth, we explored a few **common sequences**: Fibonacci numbers and prime numbers, or the Leibnitz series for computing the value of Ο.

Fifth, we solved a few **golf problems**: how to print the first Fibonacci numbers, or how to print the first prime numbers. A separate post was dedicated to the ideas of how to make the code more compact.

Sixth, we moved on to **command-line tools**, covered the basic options that Rakudo supports and created a few one-liners for manipulating files, such as the one for renaming a bunch of files, or reversing a text file, or merging two files horizontally, or computing totals from the table columns, or how to read from multiple input files.

As a bonus, the posts from the One-Liner calendar have been translated to Chines, thanks to Chen Yf (if I decoded the name correctly).

Also, donβt forget about my article in the regular Perl 6 Advent Calendar about how to make the grammar more compact.

### Like this:

Like Loading...

*Related*

A great series, Andy, I loved these posts.

LikeLiked by 1 person