Skip to content

Commit 64912fb

Browse files
committed
Mention that filter=grep in py-nutshell
Resolves #1420
1 parent cc2632a commit 64912fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/py-nutshell.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ becomes either of these:
457457
( { $_[0] + $_[1] } for (3,9) X (2,10) );
458458
( -> (\i, \j) { i + j } for (3,9) X (2,10) );
459459
460-
Using C<map> (which is just like Python's C<map>) is
461-
an alternative.
460+
Using C<map> (which is just like Python's C<map>) and
461+
C<grep> (which is like Python's C<filter>) is an alternative.
462462
463463
=head2 Classes and Objects
464464

0 commit comments

Comments
 (0)