Course of Raku / Functional, concurrent, reactive, and web programming / Functional programming / Reduction / Exercises / Join the strings

Solution: Join the strings

Here is a possible solution to the task.

Code

say [~] '2', '0', '2', '5';

🦋 You can find the source code in the file join-strings.raku.

Output

2025

Comments

  1. [~] inserts the concatenation operator ~ between the strings.

  2. '2' ~ '0' ~ '2' ~ '5' produces the single string 2025.

Course navigation

Join the strings   |   Data feeds