How is it possible to consume two arrays at the same time ?
zip will only give references while I need the actual objects to add them in a map.
let array1 : &[String] = &["abc".to_string(),"bcd".to_string()]
let array2 : &[String] = &["bcd".to_string(),"abc".to_string()]
for a,b in array1.into_iter().zip(array2.into_iter()){
map.insert(a,b); // Doesn't work because a and b are &String instead of String
}