Cursus Raku / Elementa / Positionalia data genera / Nidificata array
Quiz — Nidificata array
Est array array:
my @data =
[1.2, 2.3, 3.4],
[4.5, 5.6, 6.7],
[5.6, 6.7, 7.8],
[6.7, 7.8, 8.9];
Elementa singula
Quid exspectas videre in output ad singulas lineas codicis sequentes?
5.6 | dic @data[1][1]; # ␣␣␣ |
1.2 | dic @data[0][0]; # ␣␣␣ |
7.8 | dic @data[2][2]; # ␣␣␣ |
Comparatio
Selige rectum Booleanum eventum comparationum sequentium.
Falsum | @data[0][0] == @data[2][2] est (: Falsum, Verum :) |
Verum | @data[1][1] == @data[2][0] est (: Falsum, Verum :) |
Longitudines
Quid valorem vocat methodus size
in sequentibus?
4 | @data.elems — (: 1, 2, 3, 4, 5 :) |
3 | @data[0].elems — (: 1, 2, 3, 4, 5 :) |
3 | @data[1].elems — (: 1, 2, 3, 4, 5 :) |
3 | @data[2].elems — (: 1, 2, 3, 4, 5 :) |
Cursus navigatio
←
Positionalia data genera / Array
|
Positionalia data genera / @*ARGS
array
→
💪 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 • Български • Русский • Українська