Skip to content

Commit 032a15e

Browse files
committed
blocks vs subroutines
1 parent 32b3be4 commit 032a15e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/Language/py-nutshell.pod6

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ Perl 6
171171
say x;
172172
# x is 10
173173
174-
Lambdas in Python are equivalent to anonymous subroutines in Perl 6.
175-
One way to write them is as pointy blocks.
174+
Lambdas in Python can be written as blocks or pointy blocks in Perl 6.
176175
177176
Python
178177
l = lambda i: i + 12
@@ -187,7 +186,7 @@ the block.
187186
Perl 6
188187
$l = * + 12
189188
190-
See the section below for more constructs.
189+
See the section below for more constructs regarding subroutines and blocks.
191190
192191
Another example (from the Python L<FAQ|https://docs.python.org/3/faq/programming.html#why-do-lambdas-defined-in-a-loop-with-different-values-all-return-the-same-result>):
193192

0 commit comments

Comments
 (0)