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 4cb25db commit 1fe9282Copy full SHA for 1fe9282
doc/Language/py-nutshell.pod6
@@ -780,13 +780,12 @@ Raku
780
Raku does not have a builtin Tuple type, though they are available as modules.
781
You can obtain the same behavior from Raku using the List type.
782
783
- my $list1 := (1, "two", 3, "hat");
784
- my $list2 := (5, 6, "seven");
785
- say $list1[1]; # OUTPUT: «two»
786
- my $list3 := slip($list1), slip($list2);
787
- my $list4 := |$list1, |$list2; # equivalent to previous line
788
- say $list3; # OUTPUT: «(1, two, 3, hat, 5, 6, seven)»
789
- say $list3.WHAT; # (List)
+ my $list1 = (1, "two", 3, "hat");
+ my $list2 = (5, 6, "seven");
+ say $list1[1]; # OUTPUT: «two»
+ my $list3 = (slip($list1), slip($list2));
+ my $list4 = (|$list1, |$list2); # equivalent to previous line
+ say $list3; # OUTPUT: «(1, two, 3, hat, 5, 6, seven)»
790
791
=end pod
792
0 commit comments