We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 865fdcf commit 347c99eCopy full SHA for 347c99e
doc/Language/py-nutshell.pod6
@@ -157,19 +157,19 @@ Perl 6
157
# ok, x is 10
158
159
Python
160
- i = 10
161
- for i in 1,2,3:
+ x = 10
+ for x in 1,2,3:
162
pass
163
- print i
164
- # i is 3
+ print x
+ # x is 3
165
166
Perl 6
167
- my \i = 10;
168
- for 1, 2, 3 -> \i {
+ my \x = 10;
+ for 1, 2, 3 -> \x {
169
# do nothing
170
}
171
- say i;
172
- # i is 10
+ say x;
+ # x is 10
173
174
Lambdas in Python can be written as pointy blocks in Perl 6.
175
0 commit comments