Course of Raku / Functional, concurrent, reactive, and web programming / Functional programming

Data feeds

A feed lets you write a chain of list operations in the order they happen, like a pipeline. Instead of nesting map inside grep inside sort, you send data from one stage to the next with the feed operator ==>.

Feeds read naturally from left to right and make multi-step transformations easy to follow. This section shows the feed operator and how to chain several stages together.

Topics in this section

Practice

Complete the 3 quizzes that cover the contents of this section.

Exercises

This section contains 3 exercises. Examine all the topics of this section before doing the coding practice.

  1. Feed the big numbers
  2. A feed pipeline
  3. Sort with a feed

Course navigation

Solution: Comma-separated list   |   The feed operator