My Tie::Cycle Perl 5 module is almost trivial but it solved a customer problem a long, long time ago. It’s makes a list that looks like a scalar. Every time […]
Read moreCategory: Sequences
Playing with Heap’s Algorithm
I implemented Heap’s algorithm, which generates all permutations of a list, in Perl 6. It’s the end of the year and I’m cleaning out all the things I marked to […]
Read moreQuick Tip #4: The Hamming Sequence and hyper-operators
The Hamming Sequence shows up in programming exercises. It’s the sequence of numbers that have only 2, 3, or 5 as divisors. The trick is to generate them in ascending […]
Read moreQuick Tip #3: Inclusive and Exclusive
Every day of the Learning Perl 6 Kickstarter campaign, I’ll present a quick tip about something I like in Perl 6. Yesterday I posted Fancier sequences. In that post I […]
Read moreQuick Tip #2: Fancier sequences
Every day of the Learning Perl 6 Kickstarter campaign, I’ll present a quick tip about something I like in Perl 6. Yesterday I posted User-defined infinite sequences. In that post […]
Read moreQuick Tip 1: User-defined infinite sequences
Every day of the Learning Perl 6 Kickstarter campaign, I’ll present a quick tip about something I like in Perl 6. Let’s start with sequences.
Read more