The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#! perl
use Iterator::Flex::Common qw[ igrep iarray ];
no_leaks_ok {
my $iter = igrep { $_ > 0 } iarray( [ -20 .. 20 ] );
1 while <$iter>;
};
done_testing;