Raku-Kurs / Fortgeschritten / Container / Geordnete Container / Flattening und Itemisierung
Quiz — Verschachtelte Arrays
Was gibt das folgende Programm aus?
my @a = 1, 2, 3;
my @b = 4, 5;
my @c = @a, @b;
say @c.elems;| 0 | 5 |
| 1 | 2 |
| 0 | 3 |
| 0 | 0 |
Raku-Kurs / Fortgeschritten / Container / Geordnete Container / Flattening und Itemisierung
Was gibt das folgende Programm aus?
my @a = 1, 2, 3;
my @b = 4, 5;
my @c = @a, @b;
say @c.elems;| 0 | 5 |
| 1 | 2 |
| 0 | 3 |
| 0 | 0 |