Raku / doc

🦋 Raku documentation
https://docs.raku.org/
Artistic License 2.0
289 stars 291 forks source link

itemised Array is not documented #4192

Open gfldex opened 1 year ago

gfldex commented 1 year ago

$[3, 4] clearly created a new container but is not documented in https://docs.raku.org/language/containers . It should be index as $[] .

say [1,2].VAR ~~ Scalar; # False
say $[3,4].VAR ~~ Scalar; # True
my @a = 1,2;
@a.append($[3, 4]);
say @a; # [1 2 [3 4]]
2colours commented 1 year ago

Well, you are right, it's not explicitly pointed out at one place, however it is deducible from this part: https://docs.raku.org/language/containers#Scalar_containers.

As a general "tutorial article", the whole page could be in a better shape, to be fair.