Cursus Raku / Elementa / Positionalia data genera
Interpolando array
Ad interpolare elementa array in chordis duplicatis-quoted scribe sicut in ipso programmate: @data[1]
. Ad interpolare totum array, adde paria vacua bracket: @data[]
. Sequens programma hunc modum illustrat:
my @data = 10, 20, 30;
say "Primus: @data[0], ultimus: @data[1]";
say "Omnes elementa: @data[]";
Hoc programma data postulata imprimit:
$ raku t.raku
Primus: 10, ultimus: 20
Omnes elementa: 10 20 30
Cursus navigatio
←
Positionalia data genera / @*ARGS
array
|
Positionalia data genera / Listae
→
💪 Or jump directly to the exercises to this section.
Haec pagina automatice translata est per ChatGPT 4o. Originalis Anglicus textus
Translationes huius paginae: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська