Skip to content

Commit 896d43f

Browse files
committed
.grep propagates .is-lazy
RT#128773
1 parent 27bee13 commit 896d43f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

S32-list/grep.t

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ built-in grep tests
99
1010
=end pod
1111

12-
plan 37;
12+
plan 39;
1313

1414
my @list = (1 .. 10);
1515

@@ -132,4 +132,10 @@ my @list = (1 .. 10);
132132
'grep is rw-like, can chain it to modify elements of grepped list/array';
133133
}
134134

135+
# RT #128773
136+
{
137+
is (^∞).grep(*.is-prime).is-lazy, True, '.grep propagates .is-lazy';
138+
is (grep *.is-prime, ^∞).is-lazy, True, 'grep() propagates .is-lazy';
139+
}
140+
135141
# vim: ft=perl6

0 commit comments

Comments
 (0)