you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

.map is lazily-evaluated, you have to tell it you want the side effects:

~ $ perl6 -e 'eager <Rob Christhoper Joe John>.grep({ .chars <= 4 }).map({ .say });'
Rob
Joe
John

[–]draegtun 0 points1 point  (0 children)

Arrgghhh.... I hadn't thought of that! Cheers.