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 1de6d36 commit 3b73256Copy full SHA for 3b73256
doc/Language/py-nutshell.rakudoc
@@ -405,16 +405,21 @@ I<Raku>
405
Declaring a function (subroutine) with C<def> in Python is accomplished
406
with C<sub> in Raku.
407
408
+Python
409
+
410
=begin code :lang<python>
-def add(a, b): # Python
411
+def add(a, b):
412
return a + b
413
+=end code
414
415
+Raku
416
-sub add(\a, \b) { # Raku
417
+=begin code
418
+sub add(\a, \b) {
419
420
}
421
=end code
422
-
423
The C<return> is optional; the value of the last expression is used as
424
the return value:
425
0 commit comments