Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a flat
  • Loading branch information
moritz committed Aug 28, 2015
1 parent ccf062e commit d13a1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S32-list/map_function_return_values.t
Expand Up @@ -14,7 +14,7 @@ my %ret;
is ~%ret.sort, "a\tA b\tB c\tC", "=> works in a map block";
}

%ret = map { $_, uc $_ }, $text.comb;
%ret = flat map { $_, uc $_ }, $text.comb;
is ~%ret.sort, "a\tA b\tB c\tC", "map called with function return values works";

# vim: ft=perl6

0 comments on commit d13a1bb

Please sign in to comment.