Rdza zainicjuj pustą tablicę
let my_empty_array: [i32; 4] = [0; 4]; // The value you put instead of the type will fill your array
Flyhouse_Squarewheel
let my_empty_array: [i32; 4] = [0; 4]; // The value you put instead of the type will fill your array
let _: [u8; 3] = [1, 2, 3];
let _: [&str; 3] = ["1", "2", "3"];
let _: [String; 3] = [
String::from("1"),
String::from("2"),
String::from("3")
];
let mut rng = rand::thread_rng();
let _: [u8; 3] = [rng.gen(), rng.gen(), rng.gen()];