Skip to content

Commit 1fe9282

Browse files
sumanstatsJJ
authored andcommitted
Fix tuple-like structure in Raku
Do a minimal change as suggested in 4cb25db
1 parent 4cb25db commit 1fe9282

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

doc/Language/py-nutshell.pod6

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -780,13 +780,12 @@ Raku
780780
Raku does not have a builtin Tuple type, though they are available as modules.
781781
You can obtain the same behavior from Raku using the List type.
782782
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)
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)␤»
790789
791790
=end pod
792791

0 commit comments

Comments
 (0)