fn greet_people(query: Query<&Name, With<Person>>) {
for name in &query {
println!("hello {}!", name.0);
}
}
I was wandering what query does, can someone explain? Or does someone have documentation about query?
is query a list? (sorry I was used to program simple code in c#)
why do we use & in front of Name and query, will this mean that we are saying that these variables will be modified, what does mean the "name.0" i mean what does stand .0
for print every name in the print function we are saying that in the {} each print function we will have the next name in the list?
I mean someone please explain me