Course of Raku / Advanced / Operators / Meta-operators / Exercises
Build a URL
Problem
A URL has been split into pieces and stored in an array. Glue the pieces back together into one string using a reduction meta-operator, print the resulting URL, and on the next line print how many characters long it is.
Example
For the input array:
my @parts = <http :// example .com>;the program prints:
http://example.com
18Solution
Course navigation
← Solution: Every factorial at once | Solution: Build a URL →